Browse Source

Updated routes to logo

1Mike21 1 year ago
parent
commit
9a8ecbf40c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      templates/admin/base_site.html
  2. 1 1
      urls.py

+ 1 - 1
templates/admin/base_site.html

@@ -5,7 +5,7 @@
 {% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
 
 {% block extrahead %}
-		<link rel="shortcut icon" href="{% static 'SharixAdmin/img/logo.svg' %}" />
+		<link rel="shortcut icon" href="{% static 'SharixAdmin/img/logo.png' %}" />
 {% endblock %}
 {% block site-settings %}
 <a class="btn btn-outline-info" href="{% url 'design:settings' %}">Загрузить логотип</a>

+ 1 - 1
urls.py

@@ -7,6 +7,6 @@ app_name = "design"
 
 urlpatterns = [
     path("", views.upload, name="settings"),
-    path("logo.svg", lambda _ : redirect('SharixAdmin/img/logo.svg', permanent=True)),
+    path("logo.png", lambda _ : redirect('SharixAdmin/img/logo.png', permanent=True)),
     path("colors", views.change_colors, name="colors"),
 ]