Skip to content

deutscher-pfadfinderbund/dpb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,282 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website for DPB

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.

1. Install frontend dependencies

# Compile SASS to CSS (Bootstrap uses SASS for customization)
$ npm run compile

# (Optional) Watch SASS files for changes and recompile automatically
$ npm run watch-css

2. Start a local database

Start 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 migrate

At this time the database is empty, so you may want request some initial data from us.

3. Start the development server

$ uv run manage.py runserver

The server is now accessible under http://localhost:8000

Create Superuser

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

About

Homepage for Deutscher Pfadfinderbund

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors