Skip to content
eknuth edited this page Mar 22, 2013 · 1 revision

Dependencies

cd /tmp git clone git://github.com/springmeyer/djmapnik.git cd djmapnik

Setup App

cd /usr/local/apps git clone [email protected]:Ecotrust/marco-portal.git cd marco-portal/marco virtualenv ../marco-envpip source ../marco-env/bin/activate pip install -r ../requirements.txt

Dependencies

cd /tmp git clone git://github.com/springmeyer/djmapnik.git cd djmapnik python setup.py install python setup.py build cd /usr/local/apps/marco-portal/marco

Setup Database (psql)

CREATE USER marco2d WITH PASSWORD 'PASSWORD'; create database marco2d with owner = marco2d template = template1; alter function cleangeometry(geometry) owner to marco2d

Local Settings

cp settings_local.template settings_local.py DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'marco2d', 'USER': 'marco2d', 'PASSWORD': 'PASSWORD' } }

SECRET_KEY = "SOMETHINGSECRET"

Complete Configuration

python manage.py add_srid 4326 python manage.py add_srid 99996 python manage.py install_cleangeometry python manage.py syncdb python man.py migrate

Apache Config

sudo cp ../labs/marco-portal.conf /etc/apache2/sites-available sudo a2ensite marco-portal.conf sudo apache2ctl configtest &&