Some improvements for appsettings app

This commit is contained in:
Real-Gecko
2020-06-17 15:15:58 +06:00
parent 7eee811e65
commit bb8f95be14
5 changed files with 43 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
from .settings import app_settings as settings
def app_settings(request):
"""
Simple context processor that puts the config into every\
RequestContext. Just make sure you have a setting like this::
TEMPLATE_CONTEXT_PROCESSORS = (
# ...
'appsettings.context_processors.app_settings',
)
"""
return {"app_settings": settings}