Skip to content

Django project for the Down, Set, Talk! Fantasy Football Bundesliga Website

Notifications You must be signed in to change notification settings

aristocat85/dstbundesliga

Repository files navigation

Getting Started

Install requirements:

poetry install

Create local configuration files

cp .env_example .env
cp local_settings_example.py local_settings.py

Perform Database Migrations

poetry run python manage.py migrate

Run Redis

docker run --name=redis --publish=6379:6379 --hostname=redis --restart=on-failure --detach redis:latest

Start Server

poetry run python manage.py runserver 127.0.0.1:8000

Create requirements.txt

poetry export -f requirements.txt --without-hashes -o /src/requirements.txt 

Create new migrations

poetry run python manage.py makemigrations

Testdata

Testdata is provided as a fixture:

poetry run python manage.py loaddata DSTBundesliga/apps/leagues/fixtures/Season2020Testdata.json