Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how add a favicon to django

env > mysite > main > urls.pyfrom django.urls import pathfrom . import viewsfrom django.contrib.staticfiles.storage import staticfiles_storagefrom django.views.generic.base import RedirectViewurlpatterns = [  path('favicon.ico', RedirectView.as_view(url=staticfiles_storage.url('img/favicon.ico')))]
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #add #favicon #django
ADD COMMENT
Topic
Name
2+8 =