From ed3448fe04dd357de8795be75fa3a4cc8940d41f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 8 Dec 2015 11:59:33 +0200 Subject: Ignore 404 on favicon.ico --- settings.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/settings.py b/settings.py index 30799c4..f62b448 100644 --- a/settings.py +++ b/settings.py @@ -129,11 +129,6 @@ INSTALLED_APPS = ( AUTH_USER_MODEL = 'servo.User' AUTH_PROFILE_MODULE = 'servo.UserProfile' -# A sample logging configuration. The only tangible logging -# performed by this configuration is to send an email to -# the site admins on every HTTP 500 error when DEBUG=False. -# See http://docs.djangoproject.com/en/dev/topics/logging for -# more details on how to customize your logging configuration. LOGGING = { 'version': 1, 'disable_existing_loggers': False, @@ -194,9 +189,10 @@ LOGIN_EXEMPT_URLS = [ 'api/devices/' ] -IGNORABLE_404_URLS = ( - re.compile(r'favicon\.ico$'), -) +# 404 URLs that should be ignored +IGNORABLE_404_URLS = [ + re.compile(r'favicon\.ico') +] TEST_RUNNER = 'servo.tests.NoDbTestRunner' -- cgit v1.2.3