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"), ]