From 36ccc7c51075cb151004444b877fc619f7f391ae Mon Sep 17 00:00:00 2001 From: Laetitia Getti Date: Tue, 2 May 2023 16:32:34 +0200 Subject: [PATCH] add meta to templates --- la_chariotte/settings.py | 3 +++ la_chariotte/templates/base.html | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/la_chariotte/settings.py b/la_chariotte/settings.py index 5619108..2fe2f07 100644 --- a/la_chariotte/settings.py +++ b/la_chariotte/settings.py @@ -15,6 +15,9 @@ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent +BASE_URL = "http://127.0.0.1:8000" # to be moved to settings/dev.py + +BASE_URL = os.getenv("BASE_URL") # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ diff --git a/la_chariotte/templates/base.html b/la_chariotte/templates/base.html index cade1f0..6785e1f 100644 --- a/la_chariotte/templates/base.html +++ b/la_chariotte/templates/base.html @@ -3,6 +3,12 @@ + + + + + + {% block title %}{% endblock %} - La Chariotte {% block css %}