diff --git a/global/settings/.gitignore b/global/settings/.gitignore new file mode 100644 index 0000000..2142506 --- /dev/null +++ b/global/settings/.gitignore @@ -0,0 +1 @@ +secret.py diff --git a/global/settings/__init__.py b/global/settings/__init__.py index fe453ea..7b97223 100644 --- a/global/settings/__init__.py +++ b/global/settings/__init__.py @@ -138,5 +138,6 @@ from datetime import date from dateutil.relativedelta import relativedelta CURRENT_YEAR = (date.today() - relativedelta(months=7)).year +END_YEAR = CURRENT_YEAR + 1 from .secret import * \ No newline at end of file diff --git a/global/templates/base/index.html b/global/templates/base/index.html index 5ed1794..e5381e8 100644 --- a/global/templates/base/index.html +++ b/global/templates/base/index.html @@ -10,7 +10,7 @@ {% block body %}
-

global studies
TJHSST {% settings_value "CURRENT_YEAR" %} - 2023

+

global studies
TJHSST {% settings_value "CURRENT_YEAR" %} - {% settings_value "END_YEAR" %}

{% include "nav.html" %} diff --git a/global/templates/nav.html b/global/templates/nav.html index 9964e09..8dff96c 100644 --- a/global/templates/nav.html +++ b/global/templates/nav.html @@ -1,6 +1,7 @@ {% load static %} +{% load settings %}