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
0
votes
2 answers

Apache Django Mod_Wsgi - reload application automatically

My mod_wsgi is running in daemon mode but it won't reload my django app whenever I make changes to files. Each time I have to reload apache's configuration. I tried to us this tutorial, but it didn't work for me...
None
0
votes
1 answer

Server performance worsened after a hardware upgrade: how should I reconfigure the server?

I'm running a site on an Ubuntu/Apache/Django/PostgreSQL stack. We upgraded our server recently from 1 processor with 2 Gb total RAM (with 0.5 Gb of that RAM assigned to memcached) to a new server that has 2 processors with 4 Gb total RAM (with 2 Gb…
Иван
  • 115
  • 2
0
votes
1 answer

Memcached and Django - When Ajax action is performed, ALL css and js is missing

I've got Django running and caching into Memcached. I have some ajax actions on a page and when those actions are performed, and the browser refreshd, the CSS and JS files are no where to be found. They are gone in Firebug and the site is displayed…
Jmichelsen
  • 113
  • 6
0
votes
1 answer

mod_wsgi overriding virtual hosts on Apache?

I have a working Django app hosted on my linode (Fedora 15), and I'm attempting to host a php-based site there as well. I'm using name-based virtual hosts to redirect requests based on the host name, but for some reason, every request is going to…
LBR
  • 3
  • 2
0
votes
3 answers

Debian 5 Lenny how to upgrade Python to 2.7 version to run Django app?

I'm configuring Debian 5 to run my Django app. The required application is required incompatible with Python 2.5 packages. I installed Python 2.7 and created the symlink python -> /usr/bin/python2.7/bin/python. After I installed mod_wsgi ./configure…
I159
  • 105
  • 6
0
votes
1 answer

Django + Apache + mod_wsgi problems

I have spent the last 2 days attempting to deploy a Django application I've built and tested using the development server built into manage.py. I've read countless tutorials and snippets, and cannot seem to get anything working correctly. At my wits…
patrickn
  • 103
  • 2
0
votes
1 answer

Django/MySQL/Memcached for 10K user visitors

I'm currently using CentOS (512 RAM, Dual-core CPU) for my website. Here are the specs: Django 1.3.1 Python 2.7.2 Apache 2 with mod_wsgi 3.3 MySQL 5 (about 5,000 records) Memcached (120 MB for running) Nginx for serving the static content When my…
anhtran
  • 101
  • 1
  • 2
0
votes
1 answer

Django -- test server running in background... somewhere

Using Putty on my Vista machine, I logged into my development server (Ubuntu) and fired up the Django Test server. I left my computer for a while (physically) and returned to find the Putty connection had timed out. No biggy, I just logged back into…
Garfonzo
  • 499
  • 2
  • 18
0
votes
1 answer

Running Django on CentOS?

I have a problem running Django with mod_wsgi and Apache on CentOS. Django runs on Python 2.5 or above but CentOS comes with Python 2.4. I can't just upgrade the default Python 2.4 because it breaks other services such as yum. I installed Python 2.7…
Johnson
  • 11
  • 2
0
votes
1 answer

Django returns 502 error when user apps are added

I've configured a Debian 6 server with nginx, Passenger, and MySQL to run Django, and was running through the Django tutorial with everything going swimmingly until I tried to turn on the admin interface. Now it returns a 502 bad gateway whenever I…
futuraprime
  • 101
  • 2
0
votes
1 answer

Multiple Django sites on a single SSL certificate using a single IP with Apache

Is it technically possible to setup multiple Django sites using a single SSL certificate on a single IP address with Apache? Below is an excerpt from my SSL config: Alias /media/ x:/home/djang-apps/myapp WSGIScriptAlias /…
0
votes
1 answer

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named django_bcrypt. django_bcrypt is installed and can…
Jibin
  • 111
  • 1
  • 4
0
votes
1 answer

How do I set Django to use Python 2.7 instead of Python 2.4?

I have installed Python 2.7 but still kept Python 2.4. When I enter the command python, it runs python 2.4 and I want to keep it this way. But how to I set Django to use /usr/local/bin/python2.7 when it runs? [EDIT] It is running on Apache with…
user965363
  • 743
  • 2
  • 6
  • 11
0
votes
1 answer

Supervisord and gunicorn_django not playing well sometimes

I can issue a command via supervisorctl to shutdown my gunicorn_django process but sometimes it hangs around until I have to eventually kill it with a -9. The log for the process usually has this: 2011-12-07 23:42:36 [27031] [INFO] Booting worker…
Freddie
  • 111
  • 2
0
votes
1 answer

Nginx common configuration that I might have missed

I recently moved from Apache Mod_wsgi to Nginx, and I have seen a major improvement on speed a lowering on memory usage and I am generally very happy with the it. I am not a server expert, so please be gentle. I am wondering if there are any small…
ApPeL
  • 141
  • 4