mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 05:04:25 +03:00
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:
parent
6cd4ab6e81
commit
96a4ae33b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user