This is a Python3 Django project.
- The requirements are defined in
pyproject.toml. - Install uv for dependency management.
- Install npm for frontend dependencies.
- Install Docker for running a local database.
# Compile SASS to CSS (Bootstrap uses SASS for customization)
$ npm run compile
# (Optional) Watch SASS files for changes and recompile automatically
$ npm run watch-cssStart a local database with docker:
$ docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=razupaltuff -e POSTGRES_USER=dpb -e POSTGRES_DB=dpb postgres:16
# Setup the database schema (only needs to be done once)
$ uv run manage.py migrateAt this time the database is empty, so you may want request some initial data from us.
$ uv run manage.py runserverThe server is now accessible under http://localhost:8000
Currently, the database is checked in. Since this project is not in production mode, this is okay.
You can add another superuser to the database with:
$ uv run manage.py createsuperuser