diff --git a/constance/context_processors.py b/constance/context_processors.py new file mode 100644 index 0000000..fa7be62 --- /dev/null +++ b/constance/context_processors.py @@ -0,0 +1,14 @@ +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}