Skip to content

YanishR/afs-website

Repository files navigation

AFS website configuration

This repository holds the source code for the AFS website.

The website itself is hosted on Heroku.

Prerequisites

In order to run the server, you will need:

  • Pyenv to manage Python versions
  • Python 3.11
  • Poetry 1.6
  • Psycopg Binary

Creating a shell

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

Running the website locally

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

Collecting static files for whitenoise

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published