forked from CGM_Public/pretix_original
Use a different-colored favicon in development mode
This commit is contained in:
13
src/pretix/base/context.py
Normal file
13
src/pretix/base/context.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user