Django

Notes on running Django using FastCGI on NginX

Some more background on Django

The following links are mainly for my benefit - you may find them useful too.

Jeff Croft wrote Django for non-programmers which provides a great insight into the power of Django.

Will Larson has this very promising blog platform called lifeflow.

AKH also has these tips on starting a django project - some good stuff in there.

Deploying Django using FastCGI

As I mentioned yestersay - deploying a Django app isn’t as easy as deploying a php app. Luckily, Alrond has done some research into some of the options available here - even luckier - using my current http server of preference, nginx.

Summary of Alronds findings

Don’t use psyco (a python accelerator) on a VPS: Psyco provided a 15%-30% improvement in performance at a cost of an 80% - 400% increase in memory usage!

Use prefork not threaded FastCGI: Prefork requires a little more memory than threaded, but under extreme load it was stable and used less CPU (See Alronds article for why).

HTTP parsing library

This is going to be very useful, We call him Tortoise because he taught us: Beautiful soup!

Notes on running Django using FastCGI lives here

If you enjoyed this article, please bookmark it using delicious or stumbleupon.

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields