This repository holds the source code for the AFS website.
The website itself is hosted on Heroku.
In order to run the server, you will need:
- Pyenv to manage Python versions
- Python 3.11
- Poetry 1.6
- Psycopg Binary
Set the local and Poetry version:
pyenv local 3.10 && poetry env use 3.10
Enter the shell:
poetry shell
Install dependencies:
poetry install
poetry install
First, make sure migrations are properly applied.
To make them run python manage.py makemigrations
.
Then, apply them: python manage.py migrate
Simply run python manage.py runserver
Run python manage.py collectstatic
This needs to be done before merging if static files have been added. There is work coming to do that on the CI side.