diff --git a/home/templates/base.html b/home/templates/base.html index e8fcdafc63ea2929200991345cffd31000589a4a..6d1c33c4a8f428417fe9d6591dccfe80d6b17edc 100644 --- a/home/templates/base.html +++ b/home/templates/base.html @@ -12,7 +12,7 @@ <meta name="keywords" content="Interludes ENS événement COF {% if settings.date_start %}{{ settings.date_start.year }} {% endif %}InterENS"> <link rel="icon" type="image/png" href="{% static 'imgs/favicon.ico' %}"> - <link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}"> + <link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}?v={{ constants.CSS_VERSION }}"> <link rel="stylesheet" type="text/css" href="{% static 'css/font-awesome-all.min.css' %}"> {% block head %}{% endblock %} </head> diff --git a/site_settings/constants.py b/site_settings/constants.py index 57751501e96542943e0376939831de803fc88c92..02662ed0f207965ec0bc4203770e1dc9c54101ac 100644 --- a/site_settings/constants.py +++ b/site_settings/constants.py @@ -5,3 +5,6 @@ WEBSITE_VERSION_DATE = "2021-04-30" WEBSITE_FULL_VERSION = "{} - {}".format( WEBSITE_VERSION, WEBSITE_VERSION_DATE ) + +# Update this to force reload of cached css +CSS_VERSION = "1.0"