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
Recent apache + mod_wsgi + django install instructions?
I've been hunting 'round google and the web to get a django setup running with apache and mod_wsgi under ubuntu 10.04, but with no success.
Does anyone know of any recent instructions on how to install the aforementioned products?
Thanks!

Wayne Werner
- 739
- 4
- 15
- 27
0
votes
1 answer
"Permission denied" when doing a `git pull` in an (Apache -> Django -> subprocess) stack
I have a Django app on an Apache server that uses subprocess.Popen to do a git pull on a repo stored on that server.
It manages to fetch the new commit for the server, but it can't do a checkout:
error: git checkout-index: unable to create file…

Ram Rachum
- 5,231
- 7
- 34
- 46
0
votes
2 answers
How would I specify a particular settings.py file in a wsgi file?
I'm a complete newbie to Python and Django but have a need to set up a website.
What commands/parameters would I add to a file of type *.wsgi that could specify a particular settings.py file in the context of Django?
Thanks!

John
- 167
- 5
0
votes
3 answers
Django not running on CentOS but simple wsgi example works
my
django.wsgi
import os
import sys
sys.path.append('/var/www/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings'
os.environ['PYTHON_EGG_CACHE'] = '/var/www/django/myapp/.python-eggs'
import django.core.handlers.wsgi
application =…
John
0
votes
3 answers
Python script not running on ready made django vmware image
I am using turnkey image for python django
http://www.turnkeylinux.org/django
When i open the page by ip adress the home page open ok
Now i tried to made the simple python file inside the wwwroot to check but apache is not executing it.
it asks me…
John
0
votes
3 answers
How can I download django-1.2 and use it across multiple sites when the system default is 1.1?
I'm on Debian Lenny and the latest backports django is 1.1.1 final. I don't want to use sid so I probably have to download django.
I have my sites located at: /www/ and I plan on using mod_wsgi with Apache2 as a reverse proxy from nginx.
Now that I…

meder omuraliev
- 1,721
- 3
- 21
- 30
0
votes
1 answer
lighttpd not reliable
I have a lighttpd running which serves a django-based webservice. It was running well for some months, but from today on, it returns a 410 sometimes, and sometimes fails silently.
To test, I make a curl-call, which most time runs fine; it returns…

schneck
- 155
- 1
- 6
0
votes
2 answers
Django on Windows 2003 Slow Initially
I have setup Django to run on a windows 2003 server following the steps on the django wiki. Everything works fine and there are no errors. Only one instance of Django is setup on the server at the moment. However whenever the first page is requested…

John
- 58
- 1
- 7
0
votes
1 answer
permission errors with python/django
Error can be seen here: http://djaffry.selfip.com:8080/
If i go to the folder /srv/twingle/search and do ls -l I get
-rwxrwxrwx 1 root root 65142784 May 26 20:28 words.db
I gave it 777 access (absolutely unsafe, I know, but I thought it would…

tipu
- 149
- 8
0
votes
1 answer
Protect all XML-RPC calls with HTTP basic auth but one
I set up a Django project for smartphone serving XML-RPC methods over HTTPS and using basic auth. All XML-RPC methods require username and password.
I would like to implement a XML-RPC method to provide registration to the system.
Obviously, this…
bodom_lx
0
votes
1 answer
django fcgi - call a management command with subprocess.Popen
I'm using an app called django-chronograph. It has a code of line which works in my dev environment and does not work in production:
p = subprocess.Popen(['python', get_manage_py(), 'run_job', str(self.pk)])
This line crashes in production with:…

Tom
- 113
- 1
- 7
0
votes
3 answers
Making Python scripts more user friendly?
I have a bunch of python scripts I've put together that cut down on busy work, but I'd like to be able to share them in an easier-to-use format for others to be used internally. The scripts aren't accessing anything local, just open API's across a…

Michael Morisy
- 148
- 1
- 1
- 6
0
votes
2 answers
Serve static media on "nginx"
My django application hosted on Apache, and now I want to serve its static media through nginx, I don't have any prior experience in nginx...plus currently the static media is serve through Apache.. expecting some helping hand.
Apache…

Switch
- 159
- 10
0
votes
3 answers
django : Serving static files through nginx
I'm using apache+mod_wsgi for django.
And all css/js/images are served through nginx.
For some odd, reason when others/friends/colleagues try accessing the site, jquery/css is not getting loaded for them, hence the page looks jumbled up.
My html…

PlanetUnknown
- 149
- 1
- 7
0
votes
1 answer
Can a typical shared host serve both Django & RoR simultaneously?
I'm going to be building two independent applications (one on Django, and one on Rails). I was wondering whether it's reasonable to expect a shared host to be able to do both simultaneously.
(Like, can a standard, nothing-special host run multiple…

montooner
- 421
- 1
- 3
- 12