forked from CGM_Public/pretix_original
14 lines
274 B
Python
14 lines
274 B
Python
import sys
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
def contextprocessor(request):
|
|
ctx = {}
|
|
if settings.DEBUG and 'runserver' not in sys.argv:
|
|
ctx['debug_warning'] = True
|
|
elif 'runserver' in sys.argv:
|
|
ctx['development_warning'] = True
|
|
|
|
return ctx
|