From b8ba64cbe17b99bba8ec2aecd9b7ef3ee0c714a9 Mon Sep 17 00:00:00 2001 From: Salah Alomari Date: Mon, 17 Apr 2017 12:42:21 +0300 Subject: [PATCH] Set copyright year dynamically --- cms/envs/common.py | 2 +- cms/templates/widgets/footer.html | 5 ++++- lms/djangoapps/certificates/views/webview.py | 3 ++- lms/envs/common.py | 2 -- themes/red-theme/lms/templates/footer.html | 7 ++++++- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index eaffb2ea3d..8708bd6ef1 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -49,7 +49,7 @@ import lms.envs.common # Although this module itself may not use these imported variables, other dependent modules may. from lms.envs.common import ( USE_TZ, TECH_SUPPORT_EMAIL, PLATFORM_NAME, BUGS_EMAIL, DOC_STORE_CONFIG, DATA_DIR, ALL_LANGUAGES, WIKI_ENABLED, - update_module_store_settings, ASSET_IGNORE_REGEX, COPYRIGHT_YEAR, + update_module_store_settings, ASSET_IGNORE_REGEX, PARENTAL_CONSENT_AGE_LIMIT, COMPREHENSIVE_THEME_DIRS, REGISTRATION_EMAIL_PATTERNS_ALLOWED, # The following PROFILE_IMAGE_* settings are included as they are # indirectly accessed through the email opt-in API, which is diff --git a/cms/templates/widgets/footer.html b/cms/templates/widgets/footer.html index 08a9bf2130..524f404bb9 100644 --- a/cms/templates/widgets/footer.html +++ b/cms/templates/widgets/footer.html @@ -1,6 +1,9 @@ <%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse +from datetime import datetime +from django.conf import settings +import pytz %>