Webseite für den Braunschweiger Kanumarathon - Django Rewrite
  • Python 44.4%
  • HTML 28.9%
  • JavaScript 16.3%
  • CSS 9.8%
  • Shell 0.4%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-11 01:32:14 +02:00
bskm add simple captcha 2026-06-11 01:32:14 +02:00
config add simple captcha 2026-06-11 01:32:14 +02:00
nginx python rewrite 2025-11-02 02:11:13 +01:00
templates add email verification sent style 2025-11-06 00:43:45 +01:00
.containerignore python rewrite 2025-11-02 02:11:13 +01:00
.gitignore python rewrite 2025-11-02 02:11:13 +01:00
compose.importer.yml update compose files 2025-11-02 02:30:26 +01:00
compose.yml update compose files 2025-11-02 02:30:26 +01:00
Containerfile python rewrite 2025-11-02 02:11:13 +01:00
entrypoint.sh python rewrite 2025-11-02 02:11:13 +01:00
importer.py python rewrite 2025-11-02 02:11:13 +01:00
manage.py python rewrite 2025-11-02 02:11:13 +01:00
README.md add sender email to readme .env 2025-11-06 00:59:52 +01:00
requirements.txt add simple captcha 2026-06-11 01:32:14 +02:00

BSKM Website

Setup

.env file

HOST_PORT=80
HOST=bs-km.de
DEBUG=false
SECRET_KEY=secret

POSTGRES_PASSWORD=bskm

EMAIL_HOST=mail.3po.ch
EMAIL_PORT=465
EMAIL_USE_SSL=true
EMAIL_HOST_USER=info
EMAIL_HOST_PASSWORD=secret
DEFAULT_FROM_EMAIL=info@example.com

Development

create compose.override.yml file:

services:
  nginx:
    volumes:
      - ./nginx/dev.conf.d:/etc/nginx/conf.d:ro
  django:
    volumes:
      - .:/app

build/start/stop

podman compose build
podman compose up -d
podman compose down

create superuser

podman compose exec django python manage.py createsuperuser

Import Legacy Database Dump

The importer will import users, entries and posts from a dump of the old php site's database.

  1. First, start the new site normally and set up the event_number. This number will be used for all imported entries.
  2. Copy the database dump to legacy-db-dump.sql.
  3. Run podman compose -f compose.yml -f compose.importer.yml up -d. This will import the dump into a separate postgres 10 database, run the importer script and then start the site normally.
  4. Confirm the data has been imported correctly.
  5. Run podman compose -f compose.yml -f compose.importer.yml down.