Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What's the ideal Ubuntu operation setup for running a Django webserver?

When I started working in Django 2 years (or so) ago it was an nginx front end to serve up static medica and Apache running mod_python (mod_wsgi) to handle all dynamic requests. Is this sill the best setup? What's the current state of the art for setting up a Django host on ubuntu?

share|improve this question

closed as not constructive by EEAA, squillman, Holocryptic, Zoredache, freiheit Jan 30 '12 at 23:04

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

This is not a good fit here, as any answer given now will not be constructive later on down the road. –  Holocryptic Jan 30 '12 at 22:52
@Holocryptic I disagree! Just because things keep changing, doesn't mean we can't build out a set of best practices every 2 years! –  MikeN Jan 30 '12 at 22:57
The problem is that this is very narrow. There are way too many variables at play to say "This is the best config EVAH!" –  Holocryptic Jan 30 '12 at 23:02
@MikeN The trouble is that when there's a million ways to do something, it's hard for there to be one single correct answer; one person has their reasons for mod_wsgi, another has their reasons for FastCGI, and another has their reasons for CherryPy - and none of them are 'wrong'. That said - the direct WSGI implementations are definitely the way to go in most situations; there's an nginx module that may be worth a look, but Apache + mod_wsgi is definitely reasonable. –  Shane Madden Jan 30 '12 at 23:04
It's very hard to define a single set of best practices for something as broad as "a Django webserver" - It's like saying "What are the best practices for setting up Rails on Ubuntu?" - the best we can tell you is "Follow the instructions the framework folks gave you, use the web server you're most comfortable with, and try not to write insecure code!" If you can narrow the scope of your question we might be able to give better suggestions :) –  voretaq7 Jan 30 '12 at 23:05