Trying to add the invitations module.

This commit is contained in:
2020-08-01 16:54:11 +02:00
parent ea9b46961b
commit bea6c606fd
2 changed files with 13 additions and 3 deletions

View File

@@ -41,7 +41,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_thumbs'
'django_thumbs',
'invitations'
]
MIDDLEWARE = [
@@ -136,3 +137,10 @@ 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