1
0
Fork 0

Ensure disabled registration on production

environments/stage/deployments/7
Nikos Roussos 2017-09-14 16:43:56 +03:00
parent 6b5403b6ec
commit 0ce1fa5fcd
No known key found for this signature in database
GPG Key ID: BADFF1767BA7C8E1
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ AUTH_USER_MODEL = 'users.User'
LOGIN_REDIRECT_URL = 'users:redirect_user'
LOGIN_URL = 'account_login'
AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify'
if ENVIRONMENT == 'production':
# Disable registration
ACCOUNT_ADAPTER = 'network.users.adapter.NoSignupsAdapter'
# Logging
LOGGING = {