Gaming guild website.
- Python 3.11.x (
https://www.python.org/
) - Poetry package manager (
https://python-poetry.org/docs/#installation
) - PostgreSQL or SQLite for database. SQLite should be fine for testing and development purposes. MariaDB/MySQL is not tested or supported.
- Redis 5 or later (production only, not required for development)
- Install the dependencies and clone this project.
- Copy
settings.py-dist
tosettings.py
. Change as needed.settings.py
should never be added to git, as it may contain secrets. - Set up environment with poetry
poetry env use 3.11
. - Install packages with poetry
poetry install --no-root --sync
. - Make sure your database is set up and configured in settings.py, and then run database
migrations to set up initial data
python manage.py migrate
. - Create a superuser so that you can access the admin
python manage.py createsuperuser
. - That's all. Now just start local dev server by running
python manage.py runserver
.
Note that some background operations use celery. It can be started with following:
python -m celery -A aether worker -l info --autoscale 2,1
Use uvicorn (ASGI): uvicorn aether.asgi:application
When deploying, the following steps need to be run:
python manage.py collectstatic --noinput
python manage.py compress
python manage.py migrate
After this, restart the WSGI/ASGI runner.
MIT. Please refer to LICENSE
for more information.