added warning message in config.yaml
This commit is contained in:
@@ -117,6 +117,7 @@ TEMPLATES = [
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'django.template.context_processors.i18n',
|
||||
'context_processors.google_analytics',
|
||||
'context_processors.warning_message',
|
||||
],
|
||||
# 'loaders': [
|
||||
# 'django.template.loaders.app_directories.Loader',
|
||||
@@ -383,3 +384,9 @@ TWEET_ACCESS_TOKEN_SECRET = CFG['tweet_access_token_secret']
|
||||
TWEET_CONSUMER_KEY = CFG['tweet_consumer_key']
|
||||
TWEET_CONSUMER_SECRET = CFG['tweet_consumer_secret']
|
||||
|
||||
# Environment
|
||||
|
||||
try:
|
||||
WARNING_MESSAGE = CFG['warning_message']
|
||||
except KeyError:
|
||||
WARNING_MESSAGE = ''
|
||||
|
||||
Reference in New Issue
Block a user