From 2a8a0febe157d23e0d4671a4dae45fbafeb78794 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 28 Jun 2024 19:53:08 +0100 Subject: [PATCH] Do a redirect --- config/urls.py | 2 ++ reinheit/apps/brew/urls.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/urls.py b/config/urls.py index 1b2174e..9474af6 100644 --- a/config/urls.py +++ b/config/urls.py @@ -1,7 +1,9 @@ +from django.views.generic.base import RedirectView from django.urls import path, include from django.contrib import admin urlpatterns = [ + path("", RedirectView.as_view(url="/brews/")), path("admin/", admin.site.urls), path("brews/", include(("reinheit.apps.brew.urls", "brew"), namespace="brews")), path("oidc/", include("oauth2_authcodeflow.urls")), diff --git a/reinheit/apps/brew/urls.py b/reinheit/apps/brew/urls.py index 2ea2be7..31a235c 100644 --- a/reinheit/apps/brew/urls.py +++ b/reinheit/apps/brew/urls.py @@ -3,6 +3,6 @@ from django.urls import path from .views import BrewListView, BrewView urlpatterns = [ - path("brews/", BrewListView.as_view(), name="list"), - path("brews//", BrewView.as_view(), name="brew"), + path("", BrewListView.as_view(), name="list"), + path("/", BrewView.as_view(), name="brew"), ]