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?

link|improve this question

76% accept rate
1  
This is not a good fit here, as any answer given now will not be constructive later on down the road. – Holocryptic Jan 30 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 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 at 23:02
3  
@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 at 23:04
3  
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 at 23:05
show 2 more comments
feedback

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

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

Browse other questions tagged or ask your own question.