Jetfar.com

It’s about whatever I’m into right now

Notes on running Django using FastCGI on NginX

leave a comment »

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

Written by Rich Atkinson

February 21, 2008 at 11:13 am

Posted in Web Tech

Leave a Reply