Questions tagged [django]

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.

1012 questions
2
votes
2 answers

Re-uploading file with unicode filename creates identical duplicate

I'm running a Django site on a Debian 6 system, with a gunicorn server and nginx 0.7.67 handling static files. The filesystem locale is set to sv_SE.UTF-8. I got a problem where another user uploaded a file with a filename containing unicode…
Samuel Linde
  • 51
  • 1
  • 4
2
votes
2 answers

Django-Mailer won't stop sending emails

I set up Django Mailer and added the two commands to the crontab: * * * * * root python /srv/www/cpm/manage.py send_mail >> /srv/www/cpm/cron_mail.log 0,20,40 * * * * root python /srv/www/cpm//manage.py retry_deferred >>…
Garfonzo
  • 499
  • 2
  • 18
2
votes
2 answers

Django, nginx, FastCGI - running via unix sockets, permission problems

I've configured nginx to run django site via socket: fastcgi_pass unix:/tmp/django.socket; now I'm (manually) running ./manage.py runfcgi socket=/tmp/django.socket http request results in 502 bad gateway, and the error is following: connect() to…
migajek
  • 171
  • 2
  • 10
2
votes
1 answer

apache+mod_wsgi configuration for django project(s) on a quad core

I've been experiment quite some time with a "typical" django setting upon nginx+apache2+mod_wsgi+memcached(+postgresql) (reading the doc and some questions on SO and SF, see comments) Since I'm still unsatisfied with the behavior (definitely because…
Stefano
  • 763
  • 1
  • 12
  • 23
2
votes
1 answer

Nginx + uWSGI + Django performance stuck on 100rq/s

I have configured Nginx with uWSGI and Django on CentOS 6 x64 (3.06GHz i3 540, 4GB), which should easily handle 2500 rq/s but when I run ab test ( ab -n 1000 -c 100 ) performance stops at 92 - 100 rq/s. Nginx: user nginx; worker_processes…
dancio
  • 23
  • 1
  • 4
2
votes
1 answer

gevent with Django as daemon

I've been developing an app using django_socketio (a python port of the Node equivalent), which relies on gevent. It ships with a Django management command that runs gevent's pywsgi server, but that of course stops when I close my terminal window,…
jonathanatx
  • 507
  • 1
  • 4
  • 9
2
votes
1 answer

whoosh_backend module cannot be found

I recently tried to install haystack with a whoosh search engine. This is to work with django 1.3 on a nginx production server. I've followed the installation instructions for each item (both haystack and whoosh). Although when I try and start the…
Neil Hickman
  • 133
  • 10
2
votes
1 answer

Hosting a Django Site with Apache/Ubuntu

I'm having issues trying to deploy my first Django app on ubuntu/Apache. I've followed the guides on djangoproject.com and scoured the internet looking for answers and I'm stuck. I have the basics up and running, but when I try to visit my site…
Shawn Inman
  • 123
  • 2
2
votes
2 answers

Varnish as a static file server for django

I want to use varnish to server static files directly from django, just for benchmarking purposes. Does varnish support serving static files directly from filesystem? I'm actually looking for nginx's equivalent "alias" command: location /media { …
goldstein
  • 183
  • 1
  • 6
2
votes
1 answer

Fine tuning Django Apache mod_wsgi

First off I am looking for some help setting up my Django and Apache settings to fine tune it for my site for the best performance cost effectiveness. Server info: Django 1.3 Webfacion server, 80mb ram allotted currently. I haven't really touched…
pllee
  • 121
  • 1
  • 3
2
votes
2 answers

Installing Pootle with uwsgi on ubuntu server

I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, not server related, but since it works on my…
Gabriele B
  • 163
  • 4
2
votes
2 answers

Django - Different URLs for Production and Development?

Is it possible to have two different urls.py files for one project, using one of them all the time, but then invoking the second for development purposes? What I want is this: For production (and is live 24/7) I want the following…
Garfonzo
  • 499
  • 2
  • 18
2
votes
4 answers

Setting environment variables in mod_wsgi for Django

I'm running Django on an RHEL instance under Apache/mod_wsgi, and I'm having issues setting some environment variables for the Python process. All of the components (Apache, Python, mod_wsgi, external libraries) are built from source, not installed…
2
votes
2 answers

django + wsgi + suexec + userdir + apache?

I've got a django 1.1 website I want to run in wsgi (as that seems to be the recommended deployment on apache). I want it to run as the www user (apache is running as www-data). I would ideally like this to work out of http://hostname/~www/…
Jayen
  • 1,857
  • 4
  • 16
  • 28
2
votes
1 answer

How to setup SysLogHandler with Django 1.3

I'm having no luck finding any information on setting up syslog logging with Django 1.3 dictionary configuration. The Django documents don't cover syslog and the python documentation is less than clear and doesn’t cover dictionary config at all. …
Rob Osborne
  • 133
  • 6