Remove specific url handler for favicon
authorMagnus Hagander <magnus@hagander.net>
Sat, 10 Mar 2018 15:40:30 +0000 (10:40 -0500)
committerMagnus Hagander <magnus@hagander.net>
Sat, 10 Mar 2018 15:40:30 +0000 (10:40 -0500)
Only used locally anyway, so we don't care. In production this is
handled by the webserver.

pgweb/urls.py

index 099b0370962c92da7d72222e09298f4fb046a5ac..4bff3d77a3c416fc4e81aa52c06243cd608825fa 100644 (file)
@@ -161,11 +161,6 @@ urlpatterns = [
        # Uncomment the next line to enable the admin:
        url(r'^admin/', include(admin.site.urls)),
 
-       # This should not happen in production - serve by the webserver natively!
-       url(r'^(favicon.ico)$', 'django.views.static.serve', {
-               'document_root': 'media',
-       }),
-
        # Crash testing URL :-)
        url(r'^crashtest/$', pgweb.misc.views.crashtest),