Add url for favicon.ico

This commit is contained in:
PCoder 2019-02-02 21:35:07 +01:00
parent 0733925af0
commit c6517f091a

View file

@ -17,12 +17,15 @@ from django.conf.urls import url
from django.contrib import admin from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path from django.urls import path
from django.views.generic import RedirectView
from no_ipv4_here.views import IndexView from no_ipv4_here.views import IndexView
urlpatterns = [ urlpatterns = [
url(r'^$', IndexView.as_view(), name='index'), url(r'^$', IndexView.as_view(), name='index'),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
url(r'^favicon\.ico$',
RedirectView.as_view(url='/static/img/favicon.ico')),
] ]
urlpatterns += staticfiles_urlpatterns() urlpatterns += staticfiles_urlpatterns()