From f2f32351e1144be8734f288a0f650aa2d6bbd7da Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 1 Aug 2020 19:05:37 +0200 Subject: [PATCH] Revert "Trying to add the invitations module." This reverts commit bea6c606fd53073dde715e4ae88338d8527fad1b. --- lostplaces/lostplaces/settings.py | 10 +--------- lostplaces/lostplaces_app/urls.py | 6 ++---- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/lostplaces/lostplaces/settings.py b/lostplaces/lostplaces/settings.py index 55fcde0..43764db 100644 --- a/lostplaces/lostplaces/settings.py +++ b/lostplaces/lostplaces/settings.py @@ -41,8 +41,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'django_thumbs', - 'invitations' + 'django_thumbs' ] MIDDLEWARE = [ @@ -137,10 +136,3 @@ AUTH_USER_MODEL = 'lostplaces_app.Explorer' # Templates to use for authentication LOGIN_REDIRECT_URL = 'home' LOGOUT_REDIRECT_URL = 'home' - -# User invitation settings -ACCOUNT_INVITATION_DAYS = 14 -ACCOUNT_ACTIVATION_DAYS = 14 -INVITATIONS_PER_USER = 0 - -INVITE_MODE = True \ No newline at end of file diff --git a/lostplaces/lostplaces_app/urls.py b/lostplaces/lostplaces_app/urls.py index 2688eb5..de6fd79 100644 --- a/lostplaces/lostplaces_app/urls.py +++ b/lostplaces/lostplaces_app/urls.py @@ -1,5 +1,4 @@ -from django.urls import path, include -from django.conf.urls import url +from django.urls import path from .views import ( hello_world, place_detail_view, @@ -15,6 +14,5 @@ urlpatterns = [ path('place//', place_detail_view, name='place_detail'), path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('place/update//', PlaceUpdateView.as_view(), name='place_edit'), - path('place/', place_list_view, name='place_list'), - (r'^accounts/', include('invitation.urls')) + path('place/', place_list_view, name='place_list') ]