Commit 7bdca784 authored by hypsug0's avatar hypsug0
Browse files

conif: set ADMINS optional

parent bc171d9c
......@@ -164,7 +164,11 @@ DATABASES = {
}
# Customizing User model
ADMINS = config.ADMINS
if hasattr(config, "ADMINS"):
ADMINS = config.ADMINS
else:
ADMINS = ((config.EMAIL_USER, config.EMAIL_USER),)
AUTH_USER_MODEL = "accounts.Profile"
......@@ -185,7 +189,10 @@ ACCOUNT_ACTIVATION_DAYS = (
7 # One-week activation window; you may, of course, use a different value.
)
REGISTRATION_AUTO_LOGIN = True # Automatically log the user in.
REGISTRATION_ADMINS = config.REGISTRATION_ADMINS
if hasattr(config, "REGISTRATION_ADMINS"):
REGISTRATION_ADMINS = config.REGISTRATION_ADMINS
else:
REGISTRATION_ADMINS = ADMINS
# Email parameters
EMAIL_HOST = config.EMAIL_SMTP
......@@ -285,6 +292,7 @@ CRISPY_CLASS_CONVERTER = {
}
# DjangoLeaflet Settings
ignAPIkey = config.IGN_API_KEY
mapboxAPIkey = config.MAPBOX_API_KEY
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment