Skip to content

Commit

Permalink
Merge branch 'main' into combined-prs-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 21, 2024
2 parents 4db7351 + 05c7a8c commit eee247b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@
"cdsa:records:user_access",
"dbgap:records:index",
"dbgap:records:applications",
"favicon",
]

# django-dbbackup
Expand Down
7 changes: 7 additions & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.templatetags.static import static as static_url_tag
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 +28,11 @@
"collaborative_analysis/",
include("primed.collaborative_analysis.urls", namespace="collaborative_analysis"),
),
path(
"favicon.ico",
RedirectView.as_view(url=static_url_tag("images/favicons/primed-favicon.png"), permanent=True),
name="favicon",
),
] + 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 eee247b

Please sign in to comment.