from django.conf import settings def environment(request): """ Template context processor to add debug variable to tempate context. """ return { 'debug': settings.DEBUG }