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.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path
from django.views.generic import RedirectView
from no_ipv4_here.views import IndexView
urlpatterns = [
url(r'^$', IndexView.as_view(), name='index'),
path('admin/', admin.site.urls),
url(r'^favicon\.ico$',
RedirectView.as_view(url='/static/img/favicon.ico')),
]
urlpatterns += staticfiles_urlpatterns()