mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 17:33:18 +00:00
use customized constance (#4191)
This commit is contained in:
15
thirdpart/constance/context_processors.py
Normal file
15
thirdpart/constance/context_processors.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import constance
|
||||
|
||||
|
||||
def config(request):
|
||||
"""
|
||||
Simple context processor that puts the config into every
|
||||
RequestContext. Just make sure you have a setting like this:
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
# ...
|
||||
'constance.context_processors.config',
|
||||
)
|
||||
|
||||
"""
|
||||
return {"config": constance.config}
|
Reference in New Issue
Block a user