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
2 answers
How can I run fastcgi through nginx as user ww-data?
My django app saves images and they're being saved as nobody:nobody instead of www-data: like they previously were under a different server. nginx is setup as user www-data and I ran the manage.py runfcgi as root so permission shouldn't be an…

Ryan Detzel
- 707
- 3
- 7
- 21
0
votes
1 answer
How to track/find long running processes using Django?
I'm using Cherokee(uwsgi) with Django and my timeouts are ridiculous(according to Cherokee). How can I track down what pages are causing these timeouts?

Ryan Detzel
- 707
- 3
- 7
- 21
0
votes
1 answer
Apache, mod_wsgi, Django - strange 500 errors
I have a Django site which works well most of the time, memory usage is stable and I wouldn't have to worry if not some strange problems, which were occasional until yesterday and cause site to go down for the whole last…

Tomasz Zieliński
- 137
- 1
- 7
0
votes
2 answers
How to speed up request/response to django using apache or another solution?
I'm mainly a developer, but every now and again I jump into the sys-admin position. For the most part I've gotten away with deploying php and python apps using apache.
I write today because I'm starting to research faster alternatives to apache,…

jbcurtin
- 115
- 4
0
votes
1 answer
Is python/django less problamatic to manage compared to rails?
Is managing a python/django server generally easier/trouble free when compared to a ruby/rails app?

Blankman
- 2,891
- 10
- 39
- 68
0
votes
1 answer
Django WSGI segfaults when importing setproctitle module
I want to use the python setproctitle module to update the process name of a python WSGI worker process when it starts working on a request. (This is to try to track down what URLs are using all the CPU). I have written a simple Django middleware…

Amandasaurus
- 31,471
- 65
- 192
- 253
0
votes
2 answers
Deploying a Django app
I want to put my Django site in /usr/local/django/mysite.
Does it matter whether this directory is owned by root or as a lower-level user?
I'm probably going to have developers push code changes to my web host using fabric, which means they will…

Nate
- 1
0
votes
1 answer
apache/python/mod_wsgi - See what python code a mod_wsgi child process is running?
I'm using Debian, Apache and mod_wsgi to run a Django application. One of the apache child processes is using lots of CPU. I need to find out what's causing it. Is there anyway to see, given a apache child PID, what python code is being run? Sorta…

Amandasaurus
- 31,471
- 65
- 192
- 253
0
votes
1 answer
django/uwsgi/nginx invalid HTTP protocol
Any idea why this error happen when accessing nginx?
uwsgi is running with the command:
/usr/sbin/uwsgi --socket /home/user/run/project.sock --chmod-socket --pidfile /home/user/project/uwsgi.pid --module project.wsgi_app --pythonpath /home/user/ -p…

user66208
- 1
- 1
0
votes
1 answer
source of "python-program" in apache2 config file
I'm attempting to tweak my server but I don't understand what the definition of "python-program" is in a site configuration file. And by that, I understand it's some sort of reference to python.
What I mean, where is it defined? Which version does…

Frank V
- 449
- 4
- 15
0
votes
2 answers
redirection problem for my sites
I have a site example.com and another one test.example.com. Both have different configuration file. But when I enter url test.example.com it will redirect to example.com.
configuration file for example.com
ServerName …

redirect-p
- 1
- 1
0
votes
1 answer
Cant start uwsgi in ubuntu 10.10
When I run "/etc/init.d/uwsgi start" nothing happens, the terminal just gives me a new line and no output. There is no sign of uswsgi in ps aux as well and /var/log/uwsgi.log is empty
I'm folowing this…

Victor
- 11
- 1
- 3
0
votes
2 answers
Apache mod_wsgi error
I have followed this guide to setup django on a cpanel server (CentOS 5.2)
http://toic.org/2010/08/14/django-on-cpanel-with-python2-6-virtualenv-and-mod_wsgi/comment-page-1/#comment-680
I get a 500 page on the domain I've set up.
Apache Log:
File…

Benbob
- 277
- 1
- 6
- 19
0
votes
2 answers
Serving static files fails - nginx
I've been looking and trying around all night, but without success.
I configured nginx to serve my static files and proxy all the other traffic:
server {
listen 80;
server_name example.com;
access_log…
user59437
0
votes
1 answer
Host multiple apps with Django, mod_wsgi
I want to host two web apps using a same Apache server, and with IP address in the URL. Two apps are differentiated by their URLs. For example,
203.1.1.1/app1/
and
203.1.1.1/app2/
I'm using mod_wsgi with Apache. However, I'm able to access only one…

Barun
- 289
- 1
- 4
- 13