misc: use settings.DEBUG in __style__ debug view (#19578)

This commit is contained in:
Thomas NOËL 2017-10-30 15:28:55 +01:00
parent d933070462
commit d110b98e23
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class StyleDemoPage(object):
self.page.delete()
def style(request):
if not settings.TEMPLATE_DEBUG:
if not settings.DEBUG:
raise Http404()
messages.success(request, _('Success notice'))
messages.info(request, _('Info notice'))