mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-27 16:59:37 +02:00
Merge pull request #587 from lkiesow/bool-case-sensitivity
Make boolean settings case insensitive
This commit is contained in:
commit
0d800e8986
1 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
SECRET_KEY = getenv('SECRET_KEY')
|
SECRET_KEY = getenv('SECRET_KEY')
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = getenv('DEBUG', 'True') == 'True'
|
DEBUG = getenv('DEBUG', 'true').lower() == 'true'
|
||||||
|
|
||||||
# ALLOWED_HOSTS = [
|
# ALLOWED_HOSTS = [
|
||||||
# 'localhost',
|
# 'localhost',
|
||||||
|
@ -202,7 +202,7 @@ TEMPLATES = [
|
||||||
|
|
||||||
# Authentication settings
|
# Authentication settings
|
||||||
|
|
||||||
DISABLE_REGISTRATION = getenv('DISABLE_REGISTRATION', 'False') == 'True'
|
DISABLE_REGISTRATION = getenv('DISABLE_REGISTRATION', 'false').lower() == 'true'
|
||||||
DISABLE_REGISTRATION_MESSAGE = getenv('DISABLE_REGISTRATION_MESSAGE', 'Registration is disabled. Please contact the administrator if you need an account.')
|
DISABLE_REGISTRATION_MESSAGE = getenv('DISABLE_REGISTRATION_MESSAGE', 'Registration is disabled. Please contact the administrator if you need an account.')
|
||||||
|
|
||||||
AUTH_USER_MODEL = 'users.CustomUser'
|
AUTH_USER_MODEL = 'users.CustomUser'
|
||||||
|
@ -243,9 +243,9 @@ if getenv('EMAIL_BACKEND', 'console') == 'console':
|
||||||
else:
|
else:
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||||
EMAIL_HOST = getenv('EMAIL_HOST')
|
EMAIL_HOST = getenv('EMAIL_HOST')
|
||||||
EMAIL_USE_TLS = getenv('EMAIL_USE_TLS', 'True') == 'True'
|
EMAIL_USE_TLS = getenv('EMAIL_USE_TLS', 'true').lower() == 'true'
|
||||||
EMAIL_PORT = getenv('EMAIL_PORT', 587)
|
EMAIL_PORT = getenv('EMAIL_PORT', 587)
|
||||||
EMAIL_USE_SSL = getenv('EMAIL_USE_SSL', 'False') == 'True'
|
EMAIL_USE_SSL = getenv('EMAIL_USE_SSL', 'false').lower() == 'true'
|
||||||
EMAIL_HOST_USER = getenv('EMAIL_HOST_USER')
|
EMAIL_HOST_USER = getenv('EMAIL_HOST_USER')
|
||||||
EMAIL_HOST_PASSWORD = getenv('EMAIL_HOST_PASSWORD')
|
EMAIL_HOST_PASSWORD = getenv('EMAIL_HOST_PASSWORD')
|
||||||
DEFAULT_FROM_EMAIL = getenv('DEFAULT_FROM_EMAIL')
|
DEFAULT_FROM_EMAIL = getenv('DEFAULT_FROM_EMAIL')
|
||||||
|
@ -313,4 +313,4 @@ LOGGING = {
|
||||||
# ADVENTURELOG_CDN_URL = getenv('ADVENTURELOG_CDN_URL', 'https://cdn.adventurelog.app')
|
# ADVENTURELOG_CDN_URL = getenv('ADVENTURELOG_CDN_URL', 'https://cdn.adventurelog.app')
|
||||||
|
|
||||||
# https://github.com/dr5hn/countries-states-cities-database/tags
|
# https://github.com/dr5hn/countries-states-cities-database/tags
|
||||||
COUNTRY_REGION_JSON_VERSION = 'v2.6'
|
COUNTRY_REGION_JSON_VERSION = 'v2.6'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue