-install python(>=2.6), django(>=1.2), django-south(>=0.7),
postgresql (>=8.3), postgis (>=1.3), geos, gdal, proj4


(Skip the step bellow, if you migrate from non
 spatially enabled version of kozanorama)
-create a postgresql database named e.g. kozanorama
 allow ident login for the current system user in
 order to login from test server without password.
 e.g.

su -c 'createdb -U kozanorama -O soulman' postgres
 where soulman is a postgresql user ownning the db


-Spatially enabling the database

 Assuming the database is called “kozanorama” and the user is
 “kozanis”, run the following:

createlang -U postgres plpgsql kozanorama
psql -d kozanorama -U postgres -f postgis.sql
psql -d kozanorama -U postgres -f postgis_comments.sql
psql -d kozanorama -U postgres -f spatial_ref_sys.sql
psql -U postgres kozanorama
  grant select on spatial_ref_sys to soulman;
  grant all on geometry_columns to soulman;
  \q
 (or for quick'n dirty, create database with owner soulman,
  run all commands with -U soulman, this does not need
  grant then)


- Run:
  ./manage.py syncdb
  ./manage.py migrate core


- Import initial data, when no migrating from non
  geospatially enabled db:
  psql -d kozanorama -U soulman -f initial_data.sql


- Set some random positions for entities with the
  custom command:
  ./manage.py random_points


- You are ready!
  Test your installation:
  e.g.
  ./manage.py runserver 0.0.0.0:8000


Stefanos Kozanis, 2011-06-05
