mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-09 10:57:27 +00:00
16 lines
343 B
Python
16 lines
343 B
Python
|
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}
|