Project Setup

This is somewhat out of date ... the most up-to-date project setup process is here: DevelopmentEnvironmentSetup

Contents

  1. Git
  2. Postgres
    1. Postgres Backups
  3. GeoDjango
    1. Other Dependencies
    2. GeoDjango Install Notes

Git

temporary location of git repository:
 http://urt.rorys.webfactional.com/git/?p=urt.git

some git setup notes are here:

Postgres

This was helpful in getting Postgres running:  http://www.entropy.ch/software/macosx/postgresql/

That postgres startup command I keep forgetting:

$ sudo su postgres
$ pg_ctl -D /opt/local/pgsql/data -l /opt/local/pgsql/log/postgres.log start

Postgres Backups

pg_dump urt_gis -U urt --format=p --create > urt_prod_db_xxxxx.sql

GeoDjango

Other Dependencies

Most of our external project dependencies are listed in our  REQUIREMENTS.txt file, which is compatible with pip.

Any other miscellaneous dependencies will be listed here:

  • standalone version of  the wordpress audio player ... This is a popular Flash-based audio player tool. It appears to have been originally developed for Wordpress but is now widely used beyond that. It is built on Flash, but the actual code is released under an Open Source MIT License. Some have provided  a support library for it for Django but we are just using the Flash player directly. (The Django library doesn't add too much in the way of convenience; but we may use it later.)

GeoDjango Install Notes

Note: initially tried doing this on a shared server (Webfaction) so tried to install things in my local / home directory instead of the standard default locations.

  • Django 1.2 and PostgreSQL were setup with the automatic install provided by Webfaction.
  • GEOS built fine ... Note: added GEOS_LIBRARY_PATH to Django settings as per instructions for non-standard location install
  • PROJ.4 built fine
  • PostGIS ./configure gave errors
    • needed to add /usr/local/pgsql/bin to PATH (for pg_config),
    • needed to add argument to ./configure command: --with-geosconfig=/home/rorys/webapps/urtdev/software/geos-3.2.2/tools/geos-config