Django, "the web framework for perfectionists with deadlines", is a Python-based framework for creating web applications. With a powerful object-based database mapper, a clean syntax for mapping URLs to views, a simple template language and a convenient automatically generated administration interface, Django is the most popular of the Python web frameworks.
Questions tagged [django]
1012 questions
0
votes
0 answers
POSTGRESQL and Django app: could not receive data from client: Connection reset by peer
I am running a django app with postgresql, nginx and gunicorn. I have a script where data is pulled from one table in the DB, modified and then needs to replace the existing data in that one table. In the same script, a few tables are also being…

Murcielago
- 141
- 1
- 1
- 8
0
votes
0 answers
How to correctly tune Apache and mod_wsgi
I'm using Django with mod_wsgi and need to tune the httpd.conf to handle 500 requests per second at peak.
Right now I have the following configuration:
StartServers 3
ServerLimit 15
MinSpareThreads 75
MaxSpareThreads 250
MaxRequestWorkers…

Paul R
- 171
- 6
0
votes
0 answers
what am I doing wrong in nginx / docker to get connect() failed (111: Connection refused) while connecting to upstream ? (SSL)
I am trying to solve why I am getting on docker / nginx container error 502 with connect() failed (111: Connection refused) when I setup properly the ssl , but I got this issue . I dont see clerly where it comes from . how can I fix this?
upstream…
0
votes
2 answers
Unable to connect to port 8000 on Azure
Description
I am using a virtual machine with the Ubuntu image. I tried to run my server on Django with this command
python manage.py runserver 0.0.0.0:8000.
When I search :8000 it fails to load.
Inbound Port rules
Port Rules
Firewall
I…

Unloading Gnat
- 3
- 2
0
votes
1 answer
High CPU load on EC2 with Nginx/Celery/Django causes server to fail
I am running a Django web app on an EC2 server using Nginx, and uWSGI. I also have Celery running some background tasks (no CRON jobs, just on occasional user actions).
The app is in early closed Beta with no users currently active.
Over the past…

artifex_knowledge
- 111
- 3
0
votes
1 answer
Are mod_wsgi, python3-mod_wsgi and libapache2-mod-wsgi-py3 the same thing? Do i need just one for Django on RHEL 7.6?
I see a couple of tutorials mentioning the Gate Interface specific to python3.6 for Ubuntu -- libapache2-mod-wsgi-py3 as opposed to just mod_wsgi in RHEL's case.
Should i be worrying about looking for specific python package on redhat or will just…

rtviii
- 101
- 1
- 3
0
votes
1 answer
nginx, handle 404s in another location with proxy_pass location
I have a basic django application setup under nginx. So far everything runs fine. What I need is a setup so I can handle 404s under /media/ with my proxy_pass application. Currently, it shows a bare nginx 404 error when no file is found. I've read…

benzkji
- 111
- 5
0
votes
1 answer
How do I set enviromental varialbes for my ubuntu server?
I have a ubuntu server deployed at digitalocean with gunicorn and nginx to host my django project.
Now I want to save my secret key in an env. var. . I searched in the internet and I found that I have to modify a file called .bash_profile but I…

Sven
- 135
- 1
- 6
0
votes
1 answer
How can I use the django shell while the server is running?
I have a django server deployed on digitalocean with gunicorn and nginx.
I followed a tutorial, I think it was this one.
Because of the tutorial I have django only installed in a virtualenv.
When I developed the server, I used to do stuff in the…

Sven
- 135
- 1
- 6
0
votes
0 answers
Configuring Apache for django project
im currently trying to deploy my django project to a web server hosted by a RHEL-8 VM. Im trying to set up the VM to utilize HTTPD (apache). However, i can't seem to get the Virtual Host configuration files right. As such, i have given apache all…

BarTM
- 11
- 4
0
votes
0 answers
Django Gunicorn-Nginx 504 gateway timeout
I have read a lot of articles about gunicorn & nginx timeout configs .
I have some requests on my website which take longer than 30 seconds .
I changed all gunicorn timeouts to 3 seconds but still getting
504 gateway timeout
error after 30…

Mehdi bahmanpour
- 121
- 3
0
votes
1 answer
unable to access executable in PATH from remote server
I have an web application hosted with Django-gUnicorn-Nginx. The web app is working mostly fine and is accessible except for one functionality.
Recently, I added pybedtools, a python wrapper package for bedtools. I have the binary executables of…

deman23
- 11
- 3
0
votes
1 answer
NGINX/Gunicorn/Django not serving custom error pages
I am attempting to serve custom error pages in my Django application running under NGINX. I have URLs defined for four pages, and navigating to them is successful; it shows the appropriate page with the appropriate status code. The trouble arises,…

Matt McCarthy
- 101
- 3
0
votes
1 answer
502 Bad Gateway nginx/1.14.0 (Ubuntu)
Im trying to deploy django app using nginx & gunicorn but its showing error
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
sudo systemctl status…

jagtar
- 1
- 1
- 2
0
votes
0 answers
Django DateFilter - input_format change
I need to change input format just for one field. I need to accept 31/03/2020 instead of 3/31/2020.
If I enter 3/31/2020 then it's works, but when try 31/03/2020 then appears Enter a valid date.
This can be done global by DATETIME_INPUT_FORMATS but…

DobriL DobriLov
- 33
- 6