Nginx & Django on Webfaction (Part 1a) – Installing
Posted by Richard Cooper | Filed under Coding, memory, Setup
This is aimed at Installing and configuring Django running as a FCGI Process behind Nginx on WebFaction shared hosting but can be altered to work with an almost identical setup on Ubuntu 9.04 (Jaunty).
For those who don’t know Nginx (Engine X) is a Free, open-source, high-performance HTTP server and reverse proxy with the added advantage for shared hosting that it has a low memory footprint – and Django is a high-level Python Web framework with added magic ponies :)
I’m creating this tutorial series so that in 3 months time when I need to set this up again for another project I haven’t forgotten where I put my written notes… (This is based off several threads in the WebFaction Forum, some research into Nginx, and a lot of trial and error getting the upload module to work with Django)
Later on in this series I will be showing how to create fancy ajax upload progress indicators with most of the work done by Nginx, and also how to hand off the work of large downloads back to Nginx.
Right, Let’s get started…
Read the rest of this entry…
Tags: django, installation, nginx, webfaction
Make PayPal IPN send Address Data
Posted by Richard Cooper | Filed under Random
Another memory jogger…
If you want address data returned by PayPal IPN then you need to set the no_shipping value to 2
1 | <input type="hidden" name="no_shipping" value="2"> |
WebFaction Easy-Install useage.
Posted by Richard Cooper | Filed under Coding, General, memory
I’m posting this here so that I can remember it :)
If you need a Python library to be available to *all* of your Python apps, then install it in the $HOME/lib/python2.5 directory. A shorter version of the command is:
Code:
1 | easy_install-2.5 -s $HOME/bin -d $HOME/lib/python2.5 the_module_name |
If you need a Python library to be available to *one* of your Python apps, then install it in the $HOME/webapps/
Code:
1 | PYTHONPATH=$HOME/webapps/<appname>/lib/python2.5 easy_install-2.5 -s $HOME/webapps/<appname>/bin -d $HOME/webapps/<appname>/lib/python2.5 the_module_name |
Tags: easy_install, python, webfaction