19 lines
329 B
Python
19 lines
329 B
Python
|
from django.conf import settings
|
||
|
|
||
|
|
||
|
SETTINGS_KEYS = [
|
||
|
'BASE_URL',
|
||
|
'STATIC_URL',
|
||
|
'MEDIA_URL',
|
||
|
'LANGUAGE_CODE',
|
||
|
'TIME_ZONE',
|
||
|
'ALLOWED_HOSTS',
|
||
|
'WAGTAIL_SITE_NAME'
|
||
|
]
|
||
|
|
||
|
|
||
|
def settings_injector(request):
|
||
|
return {'settings': {
|
||
|
setting: getattr(settings, setting) for setting in SETTINGS_KEYS
|
||
|
}}
|