fix: Add name to favicon URL pattern

This commit is contained in:
Lord_Devi 2024-09-20 18:32:51 -04:00
parent a4eec61e82
commit 233b2b3db6

View file

@ -14,5 +14,5 @@ from django.urls import re_path
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += [
re_path(r'^favicon\.ico$', RedirectView.as_view(url=settings.STATIC_URL + 'favicon-32x32.png', permanent=True)),
re_path(r'^favicon\.ico$', RedirectView.as_view(url=settings.STATIC_URL + 'favicon-32x32.png', permanent=True), name='favicon'),
]