Questions tagged [django]
The django tag has no usage guidance.
44
questions
0
votes
1
answer
263
views
How do I resolve a TLS Error associated with smtpd?
I found the following in the logs:
sssd_kcm[425899]: Starting up
postfix/submission/smtpd[425910]: initializing the server-side TLS engine
postfix/submission/smtpd[425910]: connect from unknown[::1]
...
0
votes
1
answer
89
views
Why does Django throw ImproperlyConfigured when I try to import in the Python shell?
This one kept throwing me when I started Django. Suppose you have a project project with an app app, and you want to inspect it. So you import parts of it in the Python shell:
(virtualenv) $ ...
0
votes
0
answers
279
views
Bash commands not working in pipenv shell
I am working on learning Django for backend and full-stack development. I have that working with pipenv for virtual environments can be a pain in the rear end (at least on macOS). In the terminal, I ...
0
votes
1
answer
698
views
How to export a list of IP addresses as a single local variable?
In Django, one has to specify the environment variable ALLOWED_HOSTS to define a list of server's IP addresses that are allowed to host a Django website. For example:
ALLOWED_HOSTS=['localhost', '127....
6
votes
1
answer
14k
views
How to resolve (40: Too many levels of symbolic links) on Ubuntu 10.04 AWS EC2 Instance
In my EC2 Ubuntu 18.04 instance, I have created an django.conf file at /etc/nginx/sites-available
The .conf file looks like so :
server {
listen 80;
server_name *[url_name]*;
...
1
vote
1
answer
3k
views
TypeError: __init__() missing 1 required positional argument: 'get_response ,Making Dajngo API endpoints & exposing it?
File "/home/Desktop/booklib/env/lib/python3.8/site-packages/rest_framework/authentication.py", line 126, in authenticate
self.enforce_csrf(request)
File "/home/Desktop/booklib/env/...
0
votes
1
answer
3k
views
E: Unable to locate package postgresql-server-dev-10 in Ubuntu 18.04
I am writing a Django app with postgresql, using Docker. However, for some reason building returns the error "E: Unable to locate package postgresql-server-dev-10 The command '/bin/sh -c apt-get ...
0
votes
1
answer
25
views
How can I put Django's settings.py in source control, while still making local adjustments?
In a Django project, the configuration is kept in a file called settings.py. Deployments will generally need to make local tweaks (such as setting LOCAL_HOSTS).
These tweaks cannot live in the local ...
1
vote
0
answers
3k
views
Why the .sock file not getting generated for uwsgi?
I have already banged my head for last 6 hours, and nothing seems to be working for me.
I am trying to host Django through nginx and uwsgi. As per the best of my understanding and study I have ...
0
votes
1
answer
2k
views
Adding directory to PATH -- Ubuntu
I realize that there are several similar questions out there and I'm unsure if I'm simply misunderstanding the solutions. I only recently began using Ubuntu, so I'm still familiarizing myself with ...
3
votes
1
answer
78k
views
Python "SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/docutils/"
PROBLEM
Whatever I try to install from terminal with pip (macOS 10.12) I get this error message
I may have installed and fully deleted homebrew before but I am not sure how to solve this
Installs ...
0
votes
0
answers
207
views
nginx fails while the website somehow still works
Description
I have built my Django3, gunicorn, nginx, Ubuntu 18.04, Digital Ocean project based on this guide. I only had 1 problem that it does not shows the CSS and all other static files like ...
2
votes
0
answers
9k
views
No such file or directory when trying to COPY file in docker container
This question was asked before. However I can't seem to fix this. I am trying to COPY a file to my docker container, but it keeps telling me that the directory doesn't exist, even though it does. I ...
0
votes
0
answers
22
views
which directory is unsafe for deployment?
I'm going to deploy a Django web-application, with Nginx as the webserver And I wanna deploy it on /opt/ directory.
My question is: Which permissions should I set to /opt/ and which I shouldn't. In ...
0
votes
1
answer
5k
views
connect() to unix:///tmp/uwsgi_dev.sock failed (2: No such file or directory) while connecting to upstream
I tried to run django application using uwsgi+nginx and the cronjob command is,* * * * * /usr/local/bin/lockrun --lockfile /path/to/lock_file -- uwsgi --close-on-exec -s /path/to/socket_file --chdir /...
1
vote
0
answers
232
views
How to run Django on Unix server (MobaXterm)?
While server (127.0.0.1) works just fine on PC using Pycharm which uses the Django 'GUI' framework, I've tried to execute the command on unix server (MobaXterm) but it just says that 10.1...1..69 (my ...
2
votes
2
answers
499
views
Debian: What is Best Practice when a question from a dpkg install must be asked on every install/upgrade?
I have a .deb installer for a Django system and there are questions I need to ask the person installing the software. I can see a few ways to do this, and I want to know what constitutes best practice ...
0
votes
1
answer
190
views
Error in Deploying Application to Test Server?
I am having a problem to deploy my django application on a CentOS 7 test server. Initially install the miniconda, through the root profile on the server, then perform the copy of the application and ...
0
votes
1
answer
738
views
Domain Name Routing on Ubuntu Server [closed]
I am trying to route my domain name on my DigitalOcean Ubuntu Droplet. I was curious if there is a default location where I can go to route this or if it is not that simple. The server is running ...
1
vote
0
answers
167
views
Really stuck serving django project with gunicorn
I am on Ubuntu 16.04 trying to serve a django2 weblog.
I keep getting an error of an old syntax mistake('Unitt'), that I have corrected and saved. It may have to do with file permissions. On digital ...
1
vote
1
answer
12k
views
CentOS7 nginx permission denied for media and static
Hello
I have tried to deploy django web server for a week and finally I did it, but now I have a permission denied problem with nginx
/var/log/nginx/errors.log
/2016-07-12_1.png HTTP/1.0", host: &...
1
vote
0
answers
213
views
setup mysql with django
I am trying to setup mysql server with my django application but I am having trouble installing it correctly.
I used brew install mysql to install mysql server
Then I used pip install mysqlclient ...
1
vote
0
answers
2k
views
AttributeError: 'module' object has no attribute 'INotifyWrapper'
I have installed python(2.7.9) and Django package(1.10.5). But when i execute the Django commands, i am getting below error.
Command: python -m django --version
Error:
Traceback (most recent call ...
0
votes
0
answers
503
views
Problem with pyLoad: Fatal Python error: Couldn't create autoTLSkey mapping [closed]
After running pyload on my Debian 3.14 shared server, I get this error:
Fatal Python error: Couldn't create autoTLSkey mapping
Here is the full log:
python pyLoadCore.py
17.01.2017 22:20:56 INFO ...
7
votes
1
answer
17k
views
CentOS 7 | python3: error while loading shared libraries: libpython3.5m.so.1.0
I am deploying a django server.
I've already installed python 3.5 without errors, but for some problems when I tried to compile mod_wsgi (so I could share the django app in an intranet environment ...
0
votes
1
answer
391
views
Adding a Django site breaks my virtual hosts on CentOS 7
I have a CentOS 7 server with about 20 domains all managed automatically with a vhosts file in /etc/httpd/conf.d.
I am trying to learn Django and wanted to set up a single domain using it, so I added ...
0
votes
1
answer
999
views
CentOS: How to force pip to install Django with latest Python 3.5
I'm running CentOS, and it has pre-installed Python 2.6.6. But I want to use Python 3.5, the latest version. So I have installed Python 3.5 on my server. It's working properly.
I just compile Python ...
3
votes
1
answer
1k
views
Ubuntu: Process vfs-worker taking all CPU resources
My Cloud9 (Ubuntu-based cloud IDE) began to be unresponsive after I tried to save some files (they didn't save to my cloud workspace). It shows 100% CPU utilization and a process that takes all CPU ...
3
votes
0
answers
2k
views
Best practice for django app deploy location?
I would like to hear from other developers where they deploy their django (python web-app) app code on the filesystem (own server)- not django itself, but the project custom app code.
I'm on Ubuntu ...
0
votes
1
answer
194
views
Where do I put the information for Django in Apache2 in Ubuntu
The Django documentation tell me to put
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com
<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
...
1
vote
0
answers
187
views
What folders should I exclude / not exclude when migrating a server using rsync
I've got a requirement to migrate a web server onto a fresh server (both 32 bit and Fedora 15). I'm using this guide as I've very little experience with linux, coming from a windows background.
So ...
2
votes
1
answer
326
views
Resizing Xterm window kills Django running in it
I have a Django instance running in a terminal window. Any time I resize the window, the Django process dies ungracefully, leaving no record of it in the error_log file.
I tested it within ratpoison, ...
3
votes
1
answer
1k
views
How Do I Package a Django Website for Debian (Not a Python Package or Egg)?
I have been searching for the last two weeks and chased myself into multiple dead ends trying to figure out the path that takes me where I want to go. However I finally have to admit that my answer ...
0
votes
1
answer
2k
views
Django can not connect to MySQL database over ubuntu 10.04
I got a simple Django 1.3.* project, i would like to run it over my localhost.
I installed all necessary modules like: python-mysqldb, rptz etc...
I have ubuntu 10.04 installed with python 2.7.2.
...
1
vote
1
answer
1k
views
How would I run Django and LAMP on different subdomains, but on the same Apache server?
I am currently working on a development project where I need to run four different PHP programs (both with MySQL backends) and one Django project.
Current Plan:
XenForo (forums.domain.com) [PHP ...
3
votes
1
answer
1k
views
No default output device -9996: playing sound through Django
I'm facing a problem with my Raspberry Pi while playing a sound through a web page. The page is built in with Django and is quite simple: you push on a button and a sound is played (a Python script is ...
2
votes
1
answer
3k
views
Where are Python dist-packages stored in FreeBSD?
I am trying to find this path on FreeBSD but it is not working: /usr/local/lib/python2.7/dist-packages
This same path is working on Ubuntu.
Can please some tell me where I can find Python dist-...
1
vote
1
answer
1k
views
gcc not found when installing mysqldb for django 1.4
I am trying to install the python module mysqldb which is the python interface for mysql. I need this module because I am creating a Django development server (Django 1.4, OpenSUSE) and the database ...
0
votes
1
answer
486
views
Django not installing with pip because of mismatched hash
I have a virtual machine set up with a directory created with virtualenv (env2). I am inside this directory and have it activated and want to instal django 1.4. This is my command:
$ pip install ...
2
votes
2
answers
17k
views
What is symlinking and how can learn I how to to do this?
From the Django-Documentation:
The django-admin.py script should be on your system path if you installed Django via its setup.py utility. If it’s not on your path, you can find it in site-packages/...
1
vote
0
answers
104
views
How do I fix my FastCGI Pinax / Django deployment?
I'm running OSX Lion (posted here because this is a Unix-specific question), and am trying to deploy a Pinax project via FCGI. I have the FastCGI daemon running:
$ ps wwaux | grep fcgi
jonathan ...
1
vote
0
answers
338
views
How do I satisfy the "warnings" Pinax requirement?
I'm trying to build a Pinax virtualenv. I get, on Precise Penguin with 0.7:
jonathan@ubuntu:~/Downloads/Pinax-0.7-bundle/scripts$ ./pinax-boot.py ~/virtual
New python executable in /home/jonathan/...
6
votes
1
answer
2k
views
What are the differences between runit and supervisord?
I'm looking into changing our Django deployments and was reading the deploy page for gunicorn and it talks about both supervisord which I was aware of and planning on using and runit that I don't ...
2
votes
2
answers
5k
views
FreeBSD: How to install Django with mod_wsgi?
Using FreeBSD 8.2-RELEASE. I want to mess around with Django and I want a working setup on my freebsd system. My understanding is I need to install python, apache, mod_wsgi, and django. The ...