Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bplan
django_zbp
.gitignore
.travis.yml
Makefile
README.md
manage.py
package.json
requirements-dev.txt
requirements.txt
webpack.config.js
webpack.prod.js

README.md

django_zbp

Zentrale Bplan Plattform for Berlin based on Django 1.9.4 and PostgreSQL/PostGIS

Set up

$ git clone git@github.com:liqd/django_zbp.git
$ cd django_zbp
$ npm install bower
$ pip install -r requirements.txt
$ cp django_zbp/settings/local.sample.py django_zbp/settings/local.py
$ edit django_zbp/settings/local.py -> set GDAL_LEGACY to True in your local settings if GDAL <= 1.10

edit django_zbp/settings/local.py for your database connection

DATABASES = {
    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'your db name',
        'USER': 'your db username',
        'PASSWORD': 'your db username password',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}
INSTALL DEPENDENCIES
$ make install

LOAD DISTRICTS AND ORTSTEILE
$ ./manage.py load_bezirke
$ ./manage.py load_ortsteile

LOAD BPLAN
$ ./manage.py load_bplan --fromFixtures (to load data from fixtures, no GDAL required)
$ ./manage.py load_bplan (to load data from WFS, GDAL required)

INSERT ADDRESSES
$ wget http://fbarc.stadt-berlin.de/FIS_Broker_Atom/AD/AD_AdressenBerlin.zip
$ unzip *.zip
$ ./manage.py insert_addresses *.gml

LOAD ALL DATA
$ ./manage.py populate_database

continue:

$ ./manage.py runserver

go to http://localhost:8005/admin/

You can’t perform that action at this time.