Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

favicon django

<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
Comment

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')))]
Comment

PREVIOUS NEXT
Code Example
Python :: pyqt graph 
Python :: py quick sort 
Python :: np.append 
Python :: How to Access Items in a Set in Python 
Python :: django run command from code 
Python :: plot dataframe 
Python :: dictionary multiple values per key 
Python :: truthy falsy python 
Python :: Encrypting a message in Python 
Python :: check if string is python code 
Python :: Join query flask-sqlalchemy 
Python :: google.protobuf.Struct example python 
Python :: python poetry 
Python :: i++ in python 
Python :: sort list in python 
Python :: list insert python 
Python :: stemming words python 
Python :: matplotlib window size 
Python :: sorted 
Python :: python import function from file 
Python :: cbind arrays python 
Python :: python online compiler 
Python :: iterate through dict with condition 
Python :: pandas df number of columns 
Python :: google youtuve api 
Python :: class inheritance 
Python :: python copy list 
Python :: python in 
Python :: python online 
Python :: os.path.sep.join 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =