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
3
votes
1 answer
What is wrong with this attempt to serve up static content? Does a Proxy/ReverseProxy trump Alias, or can I ask for Alias to trump proxy?
I'm working on getting Apache to serve up static files for a Django project. My VirtualHost has:
Alias /static/ /home/jonathan/pragmatometer/static/
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
But requests for…

Christos Hayward
- 1,162
- 3
- 16
- 35
3
votes
1 answer
Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?
I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi:
http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/
Here is my virtual hosts…

basilikum
- 217
- 3
- 11
3
votes
1 answer
Why can't django-configurations pick up a SECRET_KEY environment variable from a heroku environment?
When trying to deploy a django app to heroku using django-configurations, I keep getting the error:
ValueError: Couldn't setup configuration 'config.settings.Production': Secret value 'SECRET_KEY' is not set
However, when I run heroku…

Aviendha
- 159
- 1
- 3
3
votes
2 answers
uwsgi emperor mode - Warning message
I use uwsgi running in the emperor mode to serve multiple Django Applications on one server. Therefore for every project I have a own config file like this one:
true
1
…

Mario
- 33
- 1
- 3
3
votes
2 answers
What is the advantage of having ELB infront of your NGINX servers?
I've looked into a lot of back end setups on Amazon Web Services, especially that of Instagram's. On their Instgram Engineering Blog they mentioned how they have an Elastic Load Balancer in front of their three NGINX servers which is front of their…

deadlock
- 185
- 2
- 8
3
votes
4 answers
Python-devel for python 2.7 on CentOS 6.4
Ok, i want to run a django web-application on a production VPS with CentOS. The application code is written using Python 2.7.
I have already installed Python 2.7 with a configured virtual environment by following this guide. But because I'm…

Vladimir Chub
- 141
- 1
- 1
- 5
3
votes
2 answers
Apache mpm worker + wsgi Python/Django workers stuck
Our Apache+Django server has the problem that workers get stuck. It's an mpm worker model, and after some time, each process that serves some dozen worker threads has all its workers frozen:
# apache2ctl status
Apache Server Status for…

Halfgaar
- 8,084
- 6
- 45
- 86
3
votes
1 answer
Debugging Gunicorn + Nginx + Django
I'm trying to deploy a readthedocs instance on my own server. The recommended way to deploy is using Gunicorn + nginx with postgres. Because there's basically no documentation on how to do this (except from their fabfiles which of course, only works…

bertzzie
- 131
- 1
- 3
3
votes
1 answer
Django site performance problem
my mod_wsgi/django app has ~2s response time with or without memcached in-memory caching.
response is the same 2s with or without DNS resolution (i.e. with direct IP request)
for comparison, a simulaneously running mediawiki php process running with…

Evgeny
- 599
- 3
- 10
- 17
3
votes
2 answers
Not able to open web application on Amazon EC2 even if port is opened
I have a t1.micro instance with the public DNS that looks similar to the following:
ec2-184-72-67-202.compute-1.amazonaws.com
(some numbers have been changed)
On this instance, I am running the following Django app:
$ sudo python manage.py…

learner
- 163
- 2
- 9
3
votes
1 answer
How do you choose the EC2 instance for your django app?
Possible Duplicate:
Can you help me with my capacity planning?
My team has created a nice django app and now it is going to be deployed on an EC2 instance. Now there are a few questions that I am looking answer for:
How do I decide which…

Irfan
- 135
- 1
- 4
3
votes
1 answer
Should production web servers use a gateway host for SSH in Django apps even though Fabric doesn't support it?
My firm manages a fairly large array of production servers across a number of servers. Our production server, by convention, only allow SSH access from a handful of gateway hosts. Most of these web servers run PHP projects which use rsync-based…

Austin Smith
- 33
- 2
3
votes
2 answers
How to reduce celeryd memory consumption?
I'm using celery 2.5.1 with django on a micro ec2 instance with 613mb memory and as such have to keep memory consumption down.
Currently I'm using it only for the scheduler "celery beat" as a web interface to cron, though I hope to use it for more…

Gringo Suave
- 474
- 5
- 12
3
votes
1 answer
Graphite not running
I'm currently trying to install graphite 0.9.9 on a gentoo box using these instructions from the graphite wiki. Essentially, it fronts graphite using apache and mod_wsgi.
Everything seems to have gone well, except that apache / the graphite webapp…

River
- 143
- 5
3
votes
3 answers
UnicodeEncodeError when uploading files in Django admin
Note: I asked this question on StackOverflow, but I realize this might be a more proper place to ask this kind of question.
I'm trying to upload a file called 'Testaråäö.txt' via the Django admin app.
I'm running Django 1.3.1 with Gunicorn 0.13.4…

Samuel Linde
- 51
- 1
- 4