Environment aware registration switch setting

The status of the registration (open or closed) is now read from the project environment instead of hardcoded in the common settings file.
This commit is contained in:
Eraldo Energy 2016-02-16 18:53:37 +01:00
parent 6cd4ab6e81
commit 96a4ae33b5

View File

@ -213,7 +213,7 @@ ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
ACCOUNT_ADAPTER = '{{cookiecutter.repo_name}}.users.adapter.AccountAdapter'
SOCIALACCOUNT_ADAPTER = '{{cookiecutter.repo_name}}.users.adapter.SocialAccountAdapter'
ACCOUNT_ALLOW_REGISTRATION = True
ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", True)
# Custom user app defaults
# Select the correct user model