Polis - is the Demo Instance of the Smart City Planning Platform of We-build.City polis.we-build.city
More about the OpenSource project: we-build.city or the company and services: services.we-build.city
- Have Python 2.7.x installed. (1.1 brew install GDAL )
- Clone https://github.com/webuildcity/wbc to a location of your choice.
- Clone this repository, https://github.com/webuildcity/polis, to a location of your choice. 3.1 Rename the sub-directory "polis" to your own "city name" i.e. "paris".
- Make a copy of your local settings:
4.1 Copy
/path/to/polis/city/default.local.py
to/path/to/polis/city/local.py
. 4.2 Edit/path/to/polis/city/local.py
to match your setup.
4.3 Edit the path to the 'wbc' library directory within the 'wbc' repository and update the database adapter settings. For testing purposes, use the sqlite3 adapter.
4.4 Edit the HAYSTACK_CONNECTIONS
block, edit the name of the index.
-
Install the dependencies using pip
pip install -r /path/to/city/requirements.txt
. You might want to use a virtualenv for this. -
Change to the home-directory of the city repository and execute
python manage.py migrate
to set up the database structure. -
Use
python manage.py load-fixtures
to load test data of the administrative information about our "polis test city" Hamburg into the database. -
Run
python manage.py createsuperuser
to create an admin account. -
Start the development server using
python manage.py runserver
. -
Open a browser and go to http://localhost:8000/. A map of our "polis test city" Hamburg should appear.
-
Use http://localhost:8000/admin/ to log in. Under region and process, districts, departments, places and publications can be added or edited.