From 03b521702ec65a8bc704326bfb2c8b71ef502fe4 Mon Sep 17 00:00:00 2001 From: mnajborowski Date: Tue, 25 Jan 2022 16:44:47 +0100 Subject: [PATCH] shorten auth urls --- Serwer_django/Serwer_django/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Serwer_django/Serwer_django/urls.py b/Serwer_django/Serwer_django/urls.py index 3f6900bb6..cb2245fac 100644 --- a/Serwer_django/Serwer_django/urls.py +++ b/Serwer_django/Serwer_django/urls.py @@ -22,8 +22,8 @@ from .views import SignUpView urlpatterns = [ path('admin/', admin.site.urls), - path('accounts/', include('django.contrib.auth.urls')), - path('accounts/signup/', SignUpView.as_view(), name='signup'), + path('', include('django.contrib.auth.urls')), + path('signup/', SignUpView.as_view(), name='signup'), path('', TemplateView.as_view(template_name='home.html'), name='home'), path('favicon.ico', RedirectView.as_view(url=staticfiles_storage.url('images/favicon.ico'))), ]