Site de la fanfare de l'École : https://www.ernestophone.ens.fr
Find a file
Martin Pépin 5381aba922
Remove the nb_{yes,no} fields
These fields duplicate information that is already present in the Answer
table. I guess they exist(ed) as an optimisation to avoid recomputing
the number of positive and negative answers per proposition each time
the list page is loaded. Given the small number of propositions we have
in practice and the extra housekeeping required to keep these fields up
to date, I consider simplicity matters more here.
2020-01-05 16:34:10 +01:00
calendrier Fix broken urls 2020-01-04 00:01:16 +01:00
Ernestophone Bump Django to 2.2.* 2020-01-04 01:02:33 +01:00
gestion Bump Django to 2.2.* 2020-01-04 01:02:33 +01:00
pads Fix pad edition 2018-06-25 20:37:19 +02:00
partitions (re?)add a missing test file 2019-03-16 18:22:17 +01:00
propositions Remove the nb_{yes,no} fields 2020-01-05 16:34:10 +01:00
static remove old admin stuff 2018-01-05 00:37:06 +01:00
.gitignore Gitignore venv 2018-01-04 23:32:53 +01:00
CHANGELOG.md Version 0.2 2020-01-04 01:09:13 +01:00
manage.py Better organization of the settings files 2017-10-13 14:17:56 +02:00
README.md Add requirements.txt 2016-06-28 12:02:19 +02:00
requirements-devel.txt Better organization of the settings files 2017-10-13 14:17:56 +02:00
requirements.txt Bump Django to 2.2.* 2020-01-04 01:02:33 +01:00

Ernesto

Pour installer le site :

  1. Copier le fichier de settings et l'adapter à ses besoins.
    • cp Ernestophone/settings-example.py Ernestophone/settings.py.
    • Principalement, éditer STATIC_ROOT et MEDIA_ROOT.
    • Penser à changer la SECRET_KEY.
  2. Appliquer les migrations python manage.py migrate.
  3. Puis :
    • En production :
      • charger les fichiers statiques : python manage.py collectstatic
      • Lancer le serveur après avoir configuré le serveur web.
    • En développement : lancer le serveur python manage.py runserver. Le site est alors accessible à localhost:8000.