Permalink
Browse files

Actually add the context processor >:x

  • Loading branch information...
ericholscher committed Nov 20, 2012
1 parent d71316f commit d479d43002178a0c9a4b6633ea2d90f27c69d60e
Showing with 8 additions and 0 deletions.
  1. +8 −0 readthedocs/core/context_processors.py
@@ -0,0 +1,8 @@
+from django.conf import settings
+
+def readthedocs_processor(request):
+ exports = {
+ 'PRODUCTION_DOMAIN': getattr(settings, 'PRODUCTION_DOMAIN', None),
+ 'USE_SUBDOMAINS': getattr(settings, 'USE_SUBDOMAINS', None),
+ }
+ return exports

0 comments on commit d479d43

Please sign in to comment.