readthedocs.org/readthedocs/core/context_processors.py

10 lines
256 B
Python

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