Browse Source

ref(settings): remonte les options de l appli dans config.env; fix #81

pull/87/head
François Poulain Gitea 7 months ago
parent
commit
dd19929039
2 changed files with 10 additions and 2 deletions
  1. +2
    -2
      benevalibre/settings/base.py
  2. +8
    -0
      config.env.example

+ 2
- 2
benevalibre/settings/base.py View File

@@ -266,7 +266,7 @@ ACCOUNT_ACTIVATION_DAYS = 3
# ASSOCIATION REGISTRATION
# ------------------------------------------------------------------------------
# Any registered guest can register an association
OPEN_REGISTRATION = True
OPEN_REGISTRATION = env.bool('OPEN_REGISTRATION', default=True)

# However is has to be moderated by administrators
MODERATED_REGISTRATION = False
MODERATED_REGISTRATION = env.bool('MODERATED_REGISTRATION', default=False)

+ 8
- 0
config.env.example View File

@@ -86,3 +86,11 @@
#
# Note that it's always disabled in production.
#DJANGO_DEBUG=off

# Application settings
#
# Any registered guest can register an association
#OPEN_REGISTRATION=True
#
# However is has to be moderated by administrators
#MODERATED_REGISTRATION=False

Loading…
Cancel
Save