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
2
votes
0 answers
Django Invalid HTTP_HOST header: '\x80\xc7\xda\x9e'
I am getting errors from Django 1.7 application hosted in Digital ocean.
Invalid HTTP_HOST header: '\x80\xc7\xda\x9e'. The domain name provided is not valid according to RFC 1034/1035.
Request repr():

Navajyoth M S
- 123
- 3
- 8
2
votes
1 answer
Setup ssl on nginx for a django project
I want to setup ssl for Nginx, my project is a Django and I also use gunicorn as wsgi Http server.
I add following lines in my settings.py code :
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
I don't know if it's necessary to do this,…

Mairon
- 159
- 3
- 12
2
votes
1 answer
installing local readthedocs with uwsgi
I'm trying to setup a local instance of readthedocs for managing project documentation. I believe I've got everything installed properly with readthedocs and it's dependencies in its own virtualenv, following:…

monkut
- 255
- 3
- 13
2
votes
0 answers
Didn't receive any response from local server in the machine
So I've server linux using NGIX with docker and many Applications django with UWSGI.
So I need to create a job to execute inside a container of docker. This jobs will do a request to a some url of application django.
However when I tried to make the…

Guilherme Soares
- 121
- 2
2
votes
1 answer
Deploying django website only for local network?
I developed a website with Django and I am deploying it with apache and mod-wsgi (as explained here). The catch is that I want to make sure that this website is accessible only on my local network.
On the same server, I will publish another website,…

a06e
- 353
- 1
- 4
- 10
2
votes
0 answers
recv not ready (11: Resource temporarily unavailable)) (nginx/1.1.19, supervisorctl, gunicorn )
I have site on Ubuntu 12.04.5 LTS, django (supervisorctl, gunicorn).
It work 1 year without problems, but today my zabbix server sending me messages about alerts (every 3-7 minutes) about timeout (for 1-2 second). I run debug mode for…

Patjomkin
- 21
- 3
2
votes
1 answer
Deploying Django application as Wordpress subpage (at sub url), mod-wsgi
I have a Wordpress blog, let's say that it's address is like yakblog.org and it is a Wordpress blog installed on Ubuntu 12.04 server.
Now, I would like to run a Django application as one of the sub page of my blog, so I could access it like this:…

yak
- 113
- 1
- 2
- 10
2
votes
1 answer
How can I install libmemcached on Openshift with sasl support?
I need libmemcached with sasl support to use Memcached Cloud cartridge on Openshift Online. I doing next:
1) Install sasl.
curl -LO ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz
tar --xvzf cyrus-sasl-2.1.26.tar.gz
cd…

BottieYOYO
- 21
- 2
2
votes
2 answers
mod_wsgi not working on Apache 2.4.12 64 bit on Windows 7
I'm running Apache (Haus) 2.4.12 64 bit on Windows 7 64 bit. Python 2.7.9 64 bit is installed. Apache is running flawless if I don't try to load mod_wsgi. I downloaded mod_wsgi.so from this site. I extracted this file, copied mod_wsgi.so to…

renatov
- 163
- 1
- 1
- 9
2
votes
1 answer
why django project failed deploying? - django + nginx + uwsgi
I am trying to deploy a Django project through Nginx and uWSGI. If I run the project manually running python manage.py runserver :8000 it works fine, so the project itself is not the problem I guess.
I installed Django and dependencies inside a…

SebasSBM
- 143
- 1
- 10
2
votes
1 answer
uWSGI backtrace: semgentation fault errors
I'm getting the following backtrace in my uWSGI logs, I don't know where to begin looking to figure this out:
DAMN ! worker 5 (pid: 29056) died :( trying respawn ...
Respawned uWSGI worker 5 (new pid: 29088)
DAMN ! worker 6 (pid: 29080) died :(…

Barmi
- 439
- 1
- 6
- 15
2
votes
1 answer
virtualenv Failed to map segment from shared object: Permission denied
When SELinx is in permissive the Django webapp runs fine with no alerts. The below error appears in the Apache error log, once SELinux is set to enforcing, but no alerts are logged to audit.log.
[wsgi:error] import psycopg2 as…

Kevin
- 314
- 4
- 9
2
votes
1 answer
Apache not serving my python app
So here's my apache config:
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
ServerAdmin marijus.merkevicius@gmail.com
ServerName 31.220.49.197
WSGIDaemonProcess ts threads=25
…

Marijus
- 121
- 1
- 5
2
votes
2 answers
Graphite SQLite3 DatabaseError: attempt to write a readonly database
Running graphite under apache httpd, with slqite database, I have the correct folder permissions
[root@liaan55 httpd]# ls -ltr /var/lib | grep graphite
drwxr-xr-x. 2 apache apache 4096 Aug 23 19:36 graphite-web
and
[root@liaan55…

Anadi Misra
- 527
- 2
- 9
- 23
2
votes
2 answers
Why do I see apache's 404 and not Django custom 404?
On my local django runserver I created a custom templates/404.html, and this works no problem. However in production with apache this custom 404.html is no longer shown (even with DEBUG=False).
I just get a white page with
Not Found
The requested…

fpghost
- 673
- 1
- 10
- 22