From f23bdf7272de7a9d80220bf2c82f554f3ef88951 Mon Sep 17 00:00:00 2001 From: JohannesK <22146437+FluidSense@users.noreply.github.com> Date: Sun, 8 Mar 2020 18:42:32 +0100 Subject: [PATCH] fix #1555 --- apps/dashboard/urls.py | 4 +++- onlineweb4/urls.py | 5 ++++- templates/dashboard_base.html | 5 +---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/urls.py b/apps/dashboard/urls.py index a44338e70..196631688 100644 --- a/apps/dashboard/urls.py +++ b/apps/dashboard/urls.py @@ -4,4 +4,6 @@ from apps.dashboard import views -urlpatterns = [url(r"^$", views.index, name="dashboard_index")] +app_name="dashboard" + +urlpatterns = [url(r"^$", views.index, name="index")] diff --git a/onlineweb4/urls.py b/onlineweb4/urls.py index 7b61939ef..4e8634307 100755 --- a/onlineweb4/urls.py +++ b/onlineweb4/urls.py @@ -117,7 +117,10 @@ if "apps.dashboard" in settings.INSTALLED_APPS: urlpatterns += [ - url(r"^dashboard/", include("apps.dashboard.urls")), + url(r"^dashboard/", + include("apps.dashboard.urls", namespace="dashboard" + ), + ), url( r"^dashboard/chunks/", include( diff --git a/templates/dashboard_base.html b/templates/dashboard_base.html index e2fbdda4b..d086f9c6c 100644 --- a/templates/dashboard_base.html +++ b/templates/dashboard_base.html @@ -76,9 +76,6 @@

Velkommen
{{ request.user.first_name @@ -320,7 +317,7 @@

{% endblock %}