Web Faction Tips
Web Faction Tips
html - when installing virtualenv, pass it the -p variable to specify which python it should use, otherwise there will be moderate levels of pain - good paradigm is to store just the mod_wsgi apps in webapps, as suggested by the tutorial, and to create a projects/ folder in the home dir. In the projects/ folders setup your virtualenv with the project-name - then clone your project inside this directory - if you use postgresql, you'll need psycopg2. Although this is installed by default on webfaction, you'll have to install it inside you virtualenv. BEFORE you do this you must add the /usr/pgsql-9.1/bin/ to your PATH (export PATH=$PATH: /usr/pgsql-9.1/bin/. This lets psycopg2 know where your pg_config is located.