etalab / cartes.data.gouv.fr

Customization d'une instance uMap
6 stars 0 forks source link

cartes.data.gouv.fr

Install

Create a umap database in your PostgreSQL instance:

createdb umap -O youruser

Activate PostGIS:

psql umap
create extension postgis;

Activate unaccent:

create extension unaccent;

Clone project:

git clone https://github.com/etalab/cartes.data.gouv.fr
cd cartes.data.gouv.fr
export UMAP_SETTINGS=`pwd`/local.py
export STATIC_ROOT=`pwd`/static_root/
export MEDIA_ROOT=`pwd`/media_root/
export DATAGOUV_SECRET=''
export DATAGOUV_KEY=''

Create a virtualenv:

virtualenv umap
source umap/bin/activate

Install umap:

pip install umap-project
umap migrate
umap storagei18n

Create a superuser:

umap createsuperuser

More at http://umap-project.readthedocs.io/en/latest/install/

Testing

umap runserver

Then open your browser and go to: http://localhost:8000/