Add /favicon.ico redirection

This commit is contained in:
Danielle McLean 2018-04-20 12:48:01 +10:00
parent 1654ceecf3
commit 132da5d69b
Signed by untrusted user: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -16,6 +16,7 @@ Including another URLconf
from django.conf import settings from django.conf import settings
from django.conf.urls import include, url from django.conf.urls import include, url
from django.contrib import admin from django.contrib import admin
from django.views.generic import RedirectView
from otp_agents.admin import TrustedAgentAdminSite from otp_agents.admin import TrustedAgentAdminSite
import django.contrib.sitemaps.views as sitemap import django.contrib.sitemaps.views as sitemap
@ -37,10 +38,12 @@ urlpatterns = [
url('', include('home.urls')), url('', include('home.urls')),
url('', include('entries.urls')), url('', include('entries.urls')),
url('', include('users.urls')), url('', include('users.urls')),
url('^.well-known/', include('wellknowns.urls')), url(r'^\.well-known/', include('wellknowns.urls')),
url('^admin/doc/', include('django.contrib.admindocs.urls')), url('^admin/doc/', include('django.contrib.admindocs.urls')),
url('^admin/', otp_admin_site.urls), url('^admin/', otp_admin_site.urls),
url('^auth/', include('lemonauth.urls')), url('^auth/', include('lemonauth.urls')),
url(r'^favicon\.ico$', RedirectView.as_view(
url=settings.MEDIA_URL + 'favicon/favicon.ico')),
url('^micropub', include('micropub.urls')), url('^micropub', include('micropub.urls')),
url('^s/', include('lemonshort.urls')), url('^s/', include('lemonshort.urls')),
url('^webmention', include('webmention.urls')), url('^webmention', include('webmention.urls')),