From bb838c6c71c6979c8f43ae6af301bb432d1d60a1 Mon Sep 17 00:00:00 2001 From: Dominique <dominique.mondry@h-da.de> Date: Mon, 22 Oct 2018 10:10:09 +0200 Subject: [PATCH] #1 Done --- src/profiles/urls.py | 2 +- src/project_name/urls.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/profiles/urls.py b/src/profiles/urls.py index 8b0f79b..e83be2b 100644 --- a/src/profiles/urls.py +++ b/src/profiles/urls.py @@ -5,6 +5,6 @@ app_name = 'profiles' urlpatterns = [ path('me/', views.ShowProfile.as_view(), name='show_self'), path('me/edit/', views.EditProfile.as_view(), name='edit_self'), - path('profile/<slug:slug>/', views.ShowProfile.as_view(), + path('<slug:slug>/', views.ShowProfile.as_view(), name='show'), ] diff --git a/src/project_name/urls.py b/src/project_name/urls.py index 0fe988b..289326b 100644 --- a/src/project_name/urls.py +++ b/src/project_name/urls.py @@ -9,8 +9,8 @@ import debug_toolbar urlpatterns = [ path('', views.HomePage.as_view(), name='home'), path('admin/', admin.site.urls), - path('', include(accounts.urls)), - path('', include(profiles.urls)), + path('accounts/', include(accounts.urls)), + path('profiles/', include(profiles.urls)), path('__debug__/', include(debug_toolbar.urls)), ] -- GitLab