From 89bc00e5dab227f314e237a1444fff7d851f2252 Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 10 Sep 2020 18:37:10 +0200 Subject: [PATCH] Signup should be conifgured globally --- lostplaces/lostplaces/urls.py | 3 +++ lostplaces/lostplaces_app/urls.py | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lostplaces/lostplaces/urls.py b/lostplaces/lostplaces/urls.py index 57bdc01..c01f7b8 100644 --- a/lostplaces/lostplaces/urls.py +++ b/lostplaces/lostplaces/urls.py @@ -23,8 +23,11 @@ from django.conf.urls.static import static from django.urls import path, include from django.views.generic.base import TemplateView +from lostplaces_app.views import SignUpView + urlpatterns = [ path('admin/', admin.site.urls), + path('signup/', SignUpView.as_view(), name='signup'), path('explorers/', include('django.contrib.auth.urls')), path('', include('lostplaces_app.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/lostplaces/lostplaces_app/urls.py b/lostplaces/lostplaces_app/urls.py index a47b81e..fabf191 100644 --- a/lostplaces/lostplaces_app/urls.py +++ b/lostplaces/lostplaces_app/urls.py @@ -3,7 +3,6 @@ from .views import ( HomeView, PlaceDetailView, PlaceListView, - SignUpView, PlaceCreateView, PlaceUpdateView, PlaceDeleteView, @@ -15,8 +14,7 @@ from .views import ( ) urlpatterns = [ - path('', HomeView.as_view(), name='home'), - path('signup/', SignUpView.as_view(), name='signup'), + path('', HomeView.as_view(), name='lostplaces_home'), path('place//', PlaceDetailView.as_view(), name='place_detail'), path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('photo_album/create/', PhotoAlbumCreateView.as_view(), name='photo_album_create'),