A really simple Open Data portal for cities that don't have one.
(if you like to use docker, see below).
This project was initially developed under Python 3, but should work under 2, too (plz test).
Use your preferred python packaging management / virtualization system. Recommendation: virtualenv
Then, follow these steps to get the app running (inside your python environment):
pip install -r requirements.txt
Open your browser at http://127.0.0.1:8000
datasets.models.Dataset-model is readonly in the admin, because the source of truth should be a repo like this and this app only pulls this repo and loads the datasets into the databse. See the repos
README.md for details how to add datasets there.
Clone the dataset to somewhere in your project and adjust the
Then, the app can find the datasets and import them via:
All templates should go into the
./theme/templates/* for examples.
There is really simple
sass-based css in
Use the sass-compiler you prefer on your system. Only requirement: css output must be in
compile sass with
npm install -g node-sass
run watch mode:
sass --watch theme/src/sass/index.scss:theme/static/css/main.css
build css for production:
sass --style=compressed theme/src/sass/index.scss:theme/static/css/main.css
development setup with docker
docker-compose run web python manage.py migrate
setup admin user
docker-compose run web python manage.py createsuperuser
open browser http://localhost:8000
login at http://localhost:8000/admin/
DON'T USE DJANGOS BUILT-IN RUNSERVER!! - it is only meant to use for local development. Instead, have a look at the official docs for deployment.