Created
August 23, 2017 09:58
-
-
Save heyost/d0d1fc26dd0dab9aa153d316497b41ff to your computer and use it in GitHub Desktop.
Django favicon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example using favicon on Django Admin | |
from django.conf.urls import url | |
from django.contrib import admin | |
from django.views.generic import RedirectView | |
from muhfajar.settings import STATIC_URL | |
urlpatterns = [ | |
url(r'^favicon\.ico$', RedirectView.as_view(url=STATIC_URL + 'path_to_favicon.ico')), | |
url(r'^', admin.site.urls), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment