Skip to content

Commit

Permalink
Merge pull request #844 from UW-GAC/maint/favicon-notfound
Browse files Browse the repository at this point in the history
Maint/favicon notfound
  • Loading branch information
jmcarson authored Nov 21, 2024
2 parents 7cb7ebd + 7270b00 commit bd5f641
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.urls import include, path
from django.views import defaults as default_views
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView

urlpatterns = [
path("", TemplateView.as_view(template_name="pages/home.html"), name="home"),
Expand All @@ -26,6 +27,7 @@
"collaborative_analysis/",
include("primed.collaborative_analysis.urls", namespace="collaborative_analysis"),
),
path("favicon.ico", RedirectView.as_view(url="/static/images/favicons/primed-favicon.png", permanent=True)),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


Expand Down
7 changes: 7 additions & 0 deletions primed/templates/admin/base_site.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "admin/base_site.html" %}
{% load static %}
{% block extrahead %}

<link rel="shortcut icon" href="{% static 'images/favicons/primed-favicon.png' %}">

{% endblock %}

0 comments on commit bd5f641

Please sign in to comment.