Skip to content

ddsc/ddsc-api

Repository files navigation

ddsc-api

Introduction

DDSC-api is the api module for Dike Data Service Centre. A collaboration between Fugro, Stichting IjkDijk and Nelen & Schuurmans.

Production installation

Database passwords, and the SECRET_KEY setting, need to be set on the production server in "localsettings.py". DON'T use the default settings!

Requires

  • Postgis
  • ...
Depends on xml::
sudo apt-get install libxml2-dev libxslt-dev

Installation

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

Location-icons

The URL of location-icons are hardcoded in settings.js

About

Django site for DDSC's API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors