Added ADMINS setting

This commit is contained in:
Raphael Michel
2015-06-29 19:53:35 +02:00
parent 71b2564e51
commit 9adb5c3e12
3 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
import logging
from django.conf import settings
class AdminExistsFilter(logging.Filter):
def filter(self, record):
return not settings.DEBUG and len(settings.ADMINS) > 0