Lyon e-Sport assets generator
This website help you to generate assets from an image and GET parameters
- Python (check version in pyproject.toml)
pip install les-assets-generator
Install Poetry
Install and setup dependencies
poetry install
poetry shell
pre-commit install
pre-commit run --all-files
Set the environnement for production (.env file or env vars)
Dev: les_assets_generator.assets_generator.settings.dev
Prod: les_assets_generator.assets_generator.settings.production
DJANGO_SETTINGS_MODULE="les_assets_generator.assets_generator.settings.production"
# Database URL following https://github.com/jazzband/dj-database-url#url-schema
DATABASE_URL="sqlite:////opt//assets-generator//db.sqlite3"
# Folder that store static files
DJANGO_STATIC_ROOT="/var/www/assets-generator/static"
# Folder that store media files
DJANGO_MEDIA_ROOT="/var/www/assets-generator/media"
# Django allowed host like .lyon-esport.fr
DJANGO_ALLOWED_HOST=""
# Django log level
DJANGO_LOG_LEVEL=""
# Set the secret key for session and other thinks
SECRET_KEY=""
# Used to generate example URL in django admin like https://assets.lyon-esport.fr
DEFAULT_DOMAIN=""
# Set allowed google email domain like lyon-esport.fr
GOOGLE_DOMAIN=""
$ export DJANGO_SETTINGS_MODULE="les_assets_generator.assets_generator.settings.production"
$ python -m les_assets_generator.manage makemigrations
$ python -m les_assets_generator.manage migrate
$ python -m les_assets_generator.manage compilemessages
$ cd les_assets_generator
$ python -m les_assets_generator.manage runserver
$ python -m les_assets_generator.manage collectstatic --noinput
$ gunicorn les_assets_generator.assets_generator.wsgi:application --bind localhost:8000 --workers 3
https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#message-files
The code is under CeCILL license.
You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html
Copyright © Lyon e-Sport, 2022
Contributor(s):
-Ortega Ludovic - [email protected]