parent
9a9cbea429
commit
a690891eaf
3 changed files with 24 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
|
||||||
|
from django.conf import settings |
||||||
|
|
||||||
|
|
||||||
|
def dev(request): |
||||||
|
try: |
||||||
|
PROD_MODE = settings.PROD_MODE |
||||||
|
except AttributeError: |
||||||
|
PROD_MODE = True |
||||||
|
|
||||||
|
context = { |
||||||
|
'PROD_MODE': PROD_MODE |
||||||
|
} |
||||||
|
context['request'] = request |
||||||
|
return context |
||||||
Loading…
Reference in new issue