diff --git a/site_musique/settings/prod.py b/site_musique/settings/prod.py index 15bff47..d5f0fa5 100644 --- a/site_musique/settings/prod.py +++ b/site_musique/settings/prod.py @@ -33,6 +33,8 @@ DATABASES = { } } -MEDIA_ROOT = os.path.join(VAR_DIR, 'media') +NGINX_DIR = os.environ['NGINX_DIRECTORY'] -STATIC_ROOT = os.path.join(VAR_DIR, 'staticfiles') +MEDIA_ROOT = os.path.join(NGINX_DIR, 'media') + +STATIC_ROOT = os.path.join(NGINX_DIR, 'staticfiles') diff --git a/site_statique/templates/site_statique/ecole.html b/site_statique/templates/site_statique/ecole.html index 8debb92..89ab62b 100644 --- a/site_statique/templates/site_statique/ecole.html +++ b/site_statique/templates/site_statique/ecole.html @@ -154,4 +154,21 @@ {% include "common_files/contact.html" with responsable="Nathalie ROHRBACH, Directrice" email="ecole@musique-meyenheim.fr" %} + + {% endblock %}