# Affichage Dynamique (Digital Signage) Application d'affichage dynamique utilisée sur le campus de l'INSA Lyon (LyonTech-la Doua) ## Env variables ``` ENV DATABASE_URL postgres://ad@db/ad ENV SECRET_KEY '' ENV DJANGO_ENV 'dev' ENV MAILJET_API_KEY '' ENV MAILJET_SECRET_KEY '' ENV DEFAULT_FROM_EMAIL '' ENV EMAIL_SUBJECT_PREFIX '[Affichage Dynamique]' ENV DEFAULT_GROUP_PK 0 #Pk du groupe ajouté automatiquement à chaque nouveau inscrit ENV ALLOWED_HOSTS "affichage.bde-insa-lyon.fr" ENV HCAPTCHA_SITEKEY '' ENV HCAPTCHA_SECRET '' ENV API_EVENTS '' ENV ADMIN_EMAIL '' ENV SITE_URL "https://affichage.bde-insa-lyon.fr" ENV CONTACT_MAIL '' ENV MENTION_ROLE 'Président' ENV MENTION_MAIL '' ENV MENTION_PHONE '' ``` ## Install Juste use `docker-compose` command to set up the app. You can get HCaptcha key/secret by creating an account on their [site](https://www.hcaptcha.com/). **Important** : if there is no user group yet, set `DEFAULT_GROUP_PK` to 0. ## Cron job command If you have a doubt regarding the cron job that are executed, you can run `python3 manage.py crontab show` or `python3 manage.py crontab -l`. If there is no cron job in response, you can run `python3 manage.py crontab add` to add them again, and then run the previous command to check if cron jobs are active. In case you cannot wait for the cron job to run, you can manually trigger it by getting the id of the cron job from `python3 manage.py crontab -l`, and then using `/usr/local/bin/python3 /app/manage.py crontab run ` ## Licence [![GNU GPL v3.0](http://www.gnu.org/graphics/gplv3-127x51.png)](http://www.gnu.org/licenses/gpl.html) ``` AffichageDynamique - Open Source Digital Signage used in INSA Lyon School of Engineering (France). Copyright (C) 2019 Romain TORRENTE Copyright (C) 2021 SIA INSA Lyon This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ```