Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views

Web Faction Tips

Use virtualenv and follow documentation to set up a GeoDjango project on Webfaction. Store mod_wsgi apps in the webapps folder and create projects folders containing each virtualenv and cloned project. Install psycopg2 in each virtualenv after exporting the PostgreSQL bin path to allow psycopg2 to find pg_config.

Uploaded by

poppaness
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Web Faction Tips

Use virtualenv and follow documentation to set up a GeoDjango project on Webfaction. Store mod_wsgi apps in the webapps folder and create projects folders containing each virtualenv and cloned project. Install psycopg2 in each virtualenv after exporting the PostgreSQL bin path to allow psycopg2 to find pg_config.

Uploaded by

poppaness
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

few points on getting started with a geodjango project - use virtualenv, follow this documentation here http://forum.webfaction.com/viewtopic.php?id=2910 http://docs.webfaction.com/software/django/getting-started.

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.

LOCAL PYTHON TIP Install easy_install-2.7 after installing Python 2.7

You might also like