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 ...

learn more… | top users | synonyms

1
vote
2answers
469 views

NGinX config for Django and Wordpress in subdirectory

I need to set up a Django site at the root of a domain, but then have a Wordpress installation in a subdirectly (e.g. /blog/). How would one configure NGinX to do this? "Pretty" URLs have to work for ...
1
vote
1answer
728 views

uWSGI & Django 1.4 - Bad Gateway and no error

I am having trouble getting Django and uWSGI to play nice on Ubuntu (12). It seems that the wsgi is loading and then the app is immediately crashing. None of the uwsgi logs are giving me anything to ...
1
vote
1answer
563 views

Django, PostGIS, Postgres on Mac OS X Installation Issues [closed]

So the context Django1.4.x doesn't support postgis2.0 (https://code.djangoproject.com/ticket/16455) Postgres9.2x doesnt support postgis1.5 ...
1
vote
1answer
68 views

Designing server setup for 80 req/sec site - will this do? [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am tasked with designing a server setup for a site that has to handle about 5k requests per minute (80 - 90 per second). The ...
1
vote
1answer
323 views

How can I optimize system resource usage for many different gunicorn powered Django sites with low traffic?

My server is a Linode with 768MB of RAM. It is home to around 8 small, low traffic Django sites powered by Nginx, Supervisor, and Gunicorn. Currently, each site has its own Linux user account, with ...
1
vote
2answers
478 views

Why Won't Apache Fully Stop or Restart? I have to manually Kill every time

I have a configured EC2 server running Ubuntu 11.10 running a Django App on Apache2/WSGI. This server works perfectly, stops and restarts without any problems. When I clone this instance, everything ...
1
vote
1answer
609 views

uwsgi memory usage optimisation

I'm running several django sites on uwsgi, and I'm attempting to optimise my configuration for memory usage, but the --idle and --die-on-idle flags don't seem to be doing anything. Each daemon starts ...
1
vote
1answer
502 views

Arch Linux with an nginx/django setup refuses to display ANYTHING

I'm on Amazon Ec2, with an Arch Linux server. While I truly am loving it, I'm having the issue of actually getting nginx to display anything. Everytime I try to throw my hostname into the browser, the ...
1
vote
1answer
2k views

How do I upgrade Django 1.3.1 to 1.4? Any tips, tutorials, or warnings?

Django 1.4 was recently released. Almost all the information about Django 1.4 is in the release note, but I didn't see anything about how to upgrade. Should I just remove the django folder inside ...
1
vote
1answer
556 views

Database access Problems with Django and MySQL

I've got Apache and mod_wsgi up and running, and am now trying to introduce Django to MySQL. I've created a database named 'django' and a 'django' user; and I've granted all to django on django: ...
1
vote
1answer
258 views

Access content via a LAN connected machine which is Django-WSGI-Apache configured

I configured my system to be able to deploy Django stuff using Apache on my machine(Ubuntu 11.10).I followed the instructions given at ...
1
vote
2answers
2k views

How do you serve multiple domain static files with nginx in front of apache?

I would like to run multiple domains from the same server. I would like nginx to sit in front of apache and serve static files. So requests for one.com/site_media/logo.png points to ...
1
vote
1answer
180 views

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 ...
1
vote
1answer
57 views

How to configure Apache WSGI for Python to serve only non-existing files?

I would like to setup Django with WSGI and Apache on root (/) of the website, but I would like that Apache servers through WSGI (and Django) only those URLs which do not have corresponding file to ...
1
vote
1answer
251 views

Problem deploying Django site with mod_wsgi

I'm trying to set up an apache + mod_wsgi environment for a Django site on Linux Mint. I followed the django site tutorial for this, and mod_wsgi site too. So far I got this: on my httpd.conf I have ...
1
vote
1answer
315 views

django, mod_wsig , KeyError Threading ignored

I am getting this error from mod_wsgi: [Thu Feb 24 23:31:33 2011] [error] Exception KeyError: KeyError(140115471374144,) in <module 'threading'from '/usr/lib/python2.6/threading.pyc'> ignored ...
1
vote
1answer
416 views

Re: How can Django/WSGI and PHP share / on Apache?

in response to: How can Django/WSGI and PHP share / on Apache? Hello, could you please post the complete config file from /sites-available I am having a problem seems like rewrite engine redirects ...
1
vote
1answer
390 views

mod_rewrite rules to run fcgi for different subdomains

On my shared hosting server (Hostmonster) I have django (actually pinax) setup so that a .htaccess mod_rewrite rule rewrites the request to a pinax.fcgi file: RewriteCond %{REQUEST_FILENAME} !-f ...
1
vote
1answer
633 views

How to integrate PHP forum system with new Django website

I'm just about to launch a new Django website (RedHat EL4, Apache 2.0.52, Django 1.1, mod_wsgi), transitioning from a basic static-html and php site. As it's currently configured, Django handles ...
1
vote
3answers
1k views

How do I upgrade django on ubuntu 9.04?

I've got Django 1.0.2 installed on Ubuntu 9.04. I'd like to upgrade Django, because I have an app that needs Django 1.1 or greater. I tried using pip to do the upgrade, but got the following: $ sudo ...
1
vote
1answer
2k views

django wsgi multiple projects different url same apache server

I'm trying to get 2 separate django projects running on the same apache server with mod_wsgi that are also under the same domain but different urls. Like www.example.com/site1/ and ...
1
vote
1answer
231 views

Apache/Django subdomains problem

Now I have apache configuration which works only with localhost domain (http://localhost/). Alias /media/ "/ścieżka/do/instalacji/django/contrib/admin/media/" Alias /site_media/ ...
1
vote
1answer
206 views

Migrate Django app from ubuntu to red hat

Is there a best practice of migrating django app from ubuntu server to red hat? What could be the challenges? In the same vein will postgreSQL migration pose any challenges?
1
vote
4answers
467 views

How come my Apache can't read my media folder, but it can load the site? (static files don't work)

Alias /media/ /home/matt/repos/hello/media <Directory /home/matt/repos/hello/media> Options -Indexes Order deny,allow Allow from all </Directory> WSGIScriptAlias / ...
1
vote
1answer
1k views

Celery and Django : How to start at boot in production env (linux)

I have an app that uses celery and django to run distributed tasks (like send email, crawl web,etc). The app never was in prod, so I always start celeryd with ./manage celeryd. I want to setup a ...
1
vote
1answer
668 views

How can I install Satchmo?

I am trying to install Satchmo 0.9 on an Ubuntu 9.10 32-bit guest off of the instructions at http://bitbucket.org/chris1610/satchmo/downloads/Satchmo.pdf. I run into difficulties at 2.1.2: pip ...
1
vote
2answers
4k views

Django “Could not import settings 'settings.py'” error

I've already done my best to follow the instructions at http://docs.djangoproject.com/en/dev/howto/deployment/modpython/, but a customer is transferring a website to us, and I suspect the original ...
1
vote
1answer
288 views

Painless deployment of a Django app (port from Drupal). Do I have to switch to a VPS?

I'm about to complete porting my Drupal based community site to Django. My Drupal site is hosted at a shared hosting (Dreamhost) for last 4 years, and stability & performance has been ...
1
vote
5answers
309 views

Please critique my website file layout

I am configuring a linux webserver to support several different websites, using Django and Apache2. I have Django code for each site, some libraries supporting each of those sites, and the Apache ...
1
vote
2answers
237 views

Starting all mod_wsgi processes

mod_wsgi processes seems to be lazily started i.e. on request. However, I prefer to start all the processes from the beginning because the process start up time is long. Is there a configuration ...
1
vote
1answer
773 views

configuring default PYTHONPATH

I have Django application and few Django commands that I would execute through cronjobs on CentOS 5. Recently I updated my python-setuptools package, which in-turn update python-devel packages. ...
1
vote
1answer
552 views

apache configuration for cohosting mod_python and php based apps

I have django+python+apache2+mod_python installed hosted and working on ubuntu server/ linode VPS. php5 is installed and configured. We don't have a domain name as in example.com. Just IP address. So ...
1
vote
1answer
31 views

Ubuntu upgrade broke django mod_wsgi

I'm banging my head here and can't seem to find the answers anywhere. My server is running Ubuntu 14.04. I run several django sites using apache and mod_wsgi Today after an update, the sites will ...
1
vote
0answers
15 views

gunicorn not fully reloading after an HUP signal

I'm trying to get a working supervisor/gunicorn/django setup on vagrant. I am using python-watchdog to try and restart gunicorn when code changes happen. I am using the following supervisor ...
1
vote
0answers
46 views

Trouble with Uwsgi settings

I have a uwsgi ini that looks like this: [uwsgi] socket = :8001 processes = 4 master = true wsgi-file = /project/dev/myproject/conf/deployment/wsgi/dev/myproject-site.wsgi harakiri = 30 daemonize = ...
1
vote
1answer
29 views

API and main page as two separated processes

SITUATION I created an REST API for my mobile application and now I want to create a website. API so far is very very simple, just for a couple requests like 'get list of contents', 'update some ...
1
vote
1answer
734 views

Graphite SQLite3 DatabaseError: attempt to write a readonly database

Running graphite under apache httpd, with slqite database, I have the correct folder permissions [root@liaan55 httpd]# ls -ltr /var/lib | grep graphite drwxr-xr-x. 2 apache apache 4096 ...
1
vote
0answers
62 views

Django wsgi and mod_pagespeed not working

I installed mod_pagespeed on my server and it's working as far as the page header is concerned: X-Mod-Pagespeed:1.7.30.5-3847 The problem is that it's doing nothing else. No whitespace or comment ...
1
vote
1answer
119 views

How to Access Apache Virtual Host from Cell Phone?

I'm developing a mobile web application using Django. Currently I can start the Django development server like this: python ./manage.py runserver <my-ip>:8000 When I do that, I'll get a ...
1
vote
2answers
538 views

Django fails to find static files served by nginx

I know this is a really noobish question but I can't find any solution despite finding the problem trivial. I have a django application deployed with gunicorn. The static files are served by the ...
1
vote
2answers
439 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
1
vote
1answer
507 views

RHEL SELinux blocking Apache access to PostgreSQL

I'm running a Django app that uses PostgreSQL. The server is running RHEL 6.5 with SELinux. I'm having an issue where the Django app can't connect to the DB, and I think it's because SELinux is ...
1
vote
0answers
147 views

Error message before downtime: posix_memalign(16, 4096) failed (12: Cannot allocate memory)

I have a server running Django on top of Gunicorn and Nginx, and I experienced a small amount of downtime last night. After restarting Nginx and Gunicorn the server went back to normal, but I can't ...
1
vote
0answers
289 views

Connection refused while connecting to upstream from nginx to gunicorn_django

I'm trying to get my server back online after an upgrade, and I can no longer seem to get Nginx to direct calls to Gunicorn - every request I send to the site gets back a 502 Bad Gateway. I have ...
1
vote
1answer
260 views

Trying to run gunicorn from supervisor gives error - error: class uri 'simple' invalid or not found

I am already running successfully 2 django projects (in same virtualenv with python 2.7) with Django + gunicorn + virtualenv + Supervisord environment. But now i am trying to run another project in ...
1
vote
0answers
398 views

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the ...
1
vote
0answers
56 views

How to tell apache to look for last modified date before serving an old modified HTML file?

On certain requests my Django application updates static HTML files. However apache is serving them old copy from its cache... How can I configure Apache to make sure serve latest file changes.. ...
1
vote
0answers
256 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
1
vote
0answers
262 views

How do I allow www-data to (negatively) change the niceness of a process in Linux?

So I'm running a website using django and sometimes I call scripts located on the server by spawning a subprocess in python. When looking at the processes with "top" I see these are called under the ...
1
vote
1answer
353 views

Gunicorn error: “Error opening file for reading: Permission denied”

I'm getting an error when running my Django app with gunicorn: when I make a post request over 7800 bytes I see the following error from gunicorn: "Error opening file for reading: Permission denied". ...