DDSC-api is the api module for Dike Data Service Centre. A collaboration between Fugro, Stichting IjkDijk and Nelen & Schuurmans.
Database passwords, and the SECRET_KEY setting, need to be set on the production server in "localsettings.py". DON'T use the default settings!
- Postgis
- ...
- Depends on xml::
- sudo apt-get install libxml2-dev libxslt-dev
Create postgis databases: * ddsc_api * ddsc_site
Initially, there's no buildout.cfg. You need to make that a symlink to the
correct configuration. On your development machine, that is
development.cfg (and staging.cfg or production.cfg, for instance
on the server):
ln -s development.cfg buildout.cfg python bootstrap.py bin/buildout
All databases need one database connection e.g. create a postgis db: ddsc and point ddsc-core, ddsc-site etc towards that db:
cd src/ddsc-site
ln -s development.cfg buildout.cfg
python bootstrap.py
bin/buildout
bin/django syncdb
# for the database to sync
bin/django migrate lizard-wms
If you run in to gist_geometry_ops problems this is because postgis 2.0 has a slightly different setup, run this:
psql -d ddsc -f /usr/share/postgresql/9.1/contrib/postgis-2.1/legacy_gist.sql
The URL of location-icons are hardcoded in settings.js