Repository URL to install this package:
|
Version:
2.5.0 ▾
|
django-constance
/
context_processors.py
|
|---|
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}