Add basic project setup files

This commit is contained in:
Stefan Wehrmeyer 2023-02-03 15:43:58 +01:00
parent 4c21c9bbb2
commit 433f1faeff
14 changed files with 379 additions and 1 deletions

View file

@ -2,4 +2,25 @@
A Django app that allows tracking government plans. Deployed at: https://fragdenstaat.de/koalitionstracker/
Currently has some hard dependencies on [froide](https://github.com/okfde/froide/) and some less hard ones on [fragdenstaat_de](https://github.com/okfde/fragdenstaat_de/).
## Install stand-alone
Requires [GDAL/Geos for GeoDjango](https://docs.djangoproject.com/en/4.1/ref/contrib/gis/install/geolibs/).
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
./manage.py migrate
# Create admin user
./manage.py createsuperuser
./manage.py runserver
```
1. Go to http://localhost:8000/admin/
2. Setup a homepage in the CMS: http://localhost:8000/admin/cms/page/
3. Setup a page (could be the homepage) and then choose under advanced setting the Govplan app as application.
4. Publish that page
5. Setup a government and plans via the admin.