Use a different-colored favicon in development mode

This commit is contained in:
Raphael Michel
2019-10-07 09:03:46 +02:00
parent 749ddbf21c
commit cb37e7435d
7 changed files with 32 additions and 13 deletions

View 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