No project description provided
Project description
Lyon e-Sport assets generator
This website help you to generate assets from an image and GET parameters
Requirements
- Python (check version in pyproject.toml)
Install
pip install les-assets-generator
Dev
Install Poetry with version >= 1.2.0a1
Install and setup dependencies
poetry install
poetry shell
pre-commit install
Run pre-commit
pre-commit run --all-files
Configuration
Production only
Set the environnement for production (.env file or env vars)
# 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 = ""
# Set allowed google email domain like lyon-esport.fr
GOOGLE_DOMAIN = ""
Run
Dev: les_assets_generator.assets_generator.settings.dev Prod: les_assets_generator.assets_generator.settings.production
$ export DJANGO_SETTINGS_MODULE="les_assets_generator.assets_generator.settings.production"
$ cd les_assets_generator
$ python -m les_assets_generator.manage makemigrations
$ python -m les_assets_generator.manage migrate
$ python -m les_assets_generator.manage compilemessages
Dev
$ python -m les_assets_generator.manage runserver
Production
$ python -m les_assets_generator.manage collectstatic --settings=assets_generator.settings.production --noinput
$ gunicorn les_assets_generator.assets_generator.wsgi:application --bind 0.0.0.0:8000 --workers 3
i18n
https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#message-files
Licence
The code is under CeCILL license.
You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html
Credits
Copyright © Lyon e-Sport, 2022
Contributor(s):
-Ortega Ludovic - ludovic.ortega@lyon-esport.fr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for les-assets-generator-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd0d54da4e30e63741b36c243f12b5b9e5682e969297440e05e62d14b203701 |
|
MD5 | bfa5f6c3b458ee12795ba62e26145926 |
|
BLAKE2b-256 | c4c0bf93617933fa21214983909ea60790a50607bfaac52d07c6efe5543fcf73 |
Hashes for les_assets_generator-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161ece0509d4a9ed99eaecbfef174f22248262f170a9e05b451092445b74a266 |
|
MD5 | 7c24993e9f44bf88548ff65d4b9bf50e |
|
BLAKE2b-256 | 2ca95a3b0c35a8cba2b6cab5df4d4f8a88f0b59970a488069dc048a6cede531a |