- Django 1.2-beta
- PostgreSQL + PostGIS
- Pydermonkey
- Pygments
- Django South
-
make a settings_site.py file and add overrides for things like:
DATABASES
DEBUG
,TEMPLATE_DEBUG
ADMINS
,MANAGERS
MEDIA_ROOT
TEMPLATE_DIRS
SECRET_KEY
- non-default databases are used as datasets, add a _description and _srid field to define.
-
run
manage.py syncdb
to build the DB tables. Creating a user is a good idea. -
run
manage.py migrate
to apply DB migrations. -
run
manage.py createcachetable django_cache
to add a cache table. -
run
manage.py loaddata v16_layers
to populate the layer models. -
run
manage.py loaddata example_tags
to load some example tags for road_cl, and some defaults for all layers. -
run
manage.py runserver
and head to http://localhost:8000 -
have fun! :)
- File an issue in Github at: http://github.com/opennewzealand/linz2osm/issues
- Ask on the NZOpenGIS mailing list: http://groups.google.co.nz/group/nzopengis
To load some other IFF data, use the linz_topo scripts from nz-geodata-scripts to populate a PostGIS DB. Then, add it as a database in the settings file, (make sure it has _description and _srid defined) and it should just work.