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)
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"
# 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
$ 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
Dev
$ cd les_assets_generator
$ python -m les_assets_generator.manage runserver
Production
$ python -m les_assets_generator.manage collectstatic --noinput
$ gunicorn les_assets_generator.assets_generator.wsgi:application --bind localhost: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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62eee3a4dec2a31e7667c072a916f3f8cc54c1ce0d295d42496cb609375a22e6 |
|
MD5 | f7a51c4c4a891c3c809d1f3ab5efd594 |
|
BLAKE2b-256 | 272653715050fdfc40077caff0351c5fab503d21ff258056d3c71b2c313dba2d |
Hashes for les_assets_generator-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698ebb1790116eb777e47e8f5c1df90efd1f87504f52d82fa148b023551eb23d |
|
MD5 | 0e15e1f2b4ce9a7de5a54dcaf5795d08 |
|
BLAKE2b-256 | 159573c78c38d7b39421d9fe779b06eb71f44b718d34c151554f9cf033b35cd7 |