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
1 answer
Apache2 Modpython : IOError: Write failed, client closed connection
This is the error :
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] mod_python (pid=9528, interpreter='realpage.com', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error
[Mon Mar 01 12:19:50 2010] [error]…

llazzaro
- 421
- 4
- 16
0
votes
1 answer
Running php and django on two subdomains
My friends and I have made a project which is made out of two parts. One is made in Django and other one is made in php language. We have just one server so we want to use 2 subdomains. My question is how is this possible?
If we install apache and…

Mehan Alavi
- 101
- 1
0
votes
0 answers
Django: Configuration for serving static files on IIS server
I have a django application deployed on an AWS IIS server. Static fils are served just fine via 'runserver', but not via the IIS server. I have done everything right but it doesn't work. i even tried adding a static folder virtual directory but it…

Henry
- 1
0
votes
0 answers
How can I enable mod_wsgi in Apache2.4.57.0 on Windows?
Apache/2.4.57 (Win64)
Django 2.4.2
I am new to Django and I tried to connect it with Apache through mod_wsgi but it seems new versions of Apache does not support such kind of module. I installed mod_wsgi wheel in Anaconda with pip. Am I right? Or is…
0
votes
2 answers
Apache virtualhosts conf let wrong servername requests going through proxy
I have moved a server configuration to a new server and at the same time configured it with apache mod_proxy to access a gunicorn/django webserver (inside a docker container on port 8000). Previous server was using apache mod_wsgi to access django…

yo_e-h
- 3
- 2
0
votes
0 answers
Do I need to use an Nginx reverse proxy between AWS Application Load Balancer and Gunicorn running in Fargate?
I have a Django backend application running with Gunicorn inside a Docker container in Fargate.
Since I'm not serving any static files from the Django server (they are being served via Cloudfront) do I need to put an Nginx reverse proxy between the…

Alvaro Bataller
- 163
- 1
- 5
0
votes
1 answer
Access errors passing traffic from nginx to daphne server
I've got a GKE private k8s cluster with nginx and a django application running with wsgi and asgi. Logs from nginx show that websocket requests get a 403, and the logs on the daphne pod are showing "access denied" type errors. I've also got a…

markwalker_
- 141
- 1
- 2
- 12
0
votes
1 answer
mailman3 - css files of hyperkitty placed in wrong directory
I have installed mailman3 and followed this instruction: https://lab.uberspace.de/guide_mailman-3/
My problem is, that css files for HyperKitty (and the login screen) are not available. If I'm on https://example.org/postorius/ everything looks good…

habakuk
- 61
- 1
- 6
0
votes
1 answer
Nginx doesn't see or use subdomain config
Problem: nginx doesn't apply configuration for subdomain if there are domain and subdomain config at the same time.
Disclaimer: I'm new to nginx and server deployment.
Question:
What I do wrong with nginx configuration?
Additional info:
Nginx…

agas0077
- 3
- 2
0
votes
0 answers
403 FORBIDDEN APACHE django
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 mod_wsgi/4.9.4 Python/3.11 Server at localhost Port 80
I am trying to run my django project on my windows machine.. in apache this the configuration i have added in httpd.conf file . i have installed…
0
votes
0 answers
100 concurrent requests to a Django-App with Gunicorn lead to "54: Connection reset by peer" and 502's
I'm hosting a Django-App which serves as an API-Endpoint. Unfortunately the App which uses the API does a lot of concurrent requests on page-load (in the realm of 80-90 requests).
Nginx is running as the reverse-proxy in front of gunicorn and…

Subito
- 388
- 1
- 3
- 11
0
votes
0 answers
unable to find django error when running django app through apache2
I am trying to get a django app running on a apache2 server both on a raspberry pi for a project of mine. The appache server is running but I can't pull up the web page as I just get an "Internal Server Error"
//Log files
[Fri Apr 07 19:28:44.334749…

907VigiL
- 1
- 1
0
votes
0 answers
cors policy blocking request from my docker django nginx app
I am trying to make a POST request from my React app deployed locally to my dockerized Djano app deployed in Google Compute Engine. I am receiving this error:
Access to XMLHttpRequest at 'http://X.X.X.X/register/' from
origin…

Nikko
- 111
- 4
0
votes
0 answers
EC2 with a Caddy + Gunicorn setup sporadically unreachable
I have an EC2 instance that runs a Django via gunicorn, in which Caddy sits on top of. The domain is hosted in Route53 with an A record pointing to the IP address of the instance.
Here's what I currently have:
#…

Alcher
- 1
- 1
0
votes
1 answer
Connect Redis Unix Domain Socket to Django
I have a Django website running via nginx under user www-data and gunicorn under user myuser bound at /run/gunicorn.sock.
nginx works just fine; it acts as a proxy to the gunicorn Unix domain socket. I'm not having any problems with…

Bobort
- 126
- 4