aboutsummaryrefslogtreecommitdiffstats
path: root/config/settings/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'config/settings/base.py')
-rw-r--r--config/settings/base.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/config/settings/base.py b/config/settings/base.py
index 57028a8..c1702d7 100644
--- a/config/settings/base.py
+++ b/config/settings/base.py
@@ -4,9 +4,7 @@ Base settings to build other settings files upon.
import environ
-ROOT_DIR = (
- environ.Path(__file__) - 3
-) # (ctrack/config/settings/base.py - 3 = ctrack/)
+ROOT_DIR = environ.Path(__file__) - 3 # (ctrack/config/settings/base.py - 3 = ctrack/)
APPS_DIR = ROOT_DIR.path("ctrack")
env = environ.Env()
@@ -42,9 +40,7 @@ LOCALE_PATHS = [ROOT_DIR.path("locale")]
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
-DATABASES = {
- "default": env.db("DATABASE_URL", default="postgres:///ctrack")
-}
+DATABASES = {"default": env.db("DATABASE_URL", default="postgres:///ctrack")}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
# URLS
@@ -58,9 +54,9 @@ WSGI_APPLICATION = "config.wsgi.application"
# We're going to use the database here
CACHES = {
- 'default': {
- 'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
- 'LOCATION': 'ctrack_cache_table',
+ "default": {
+ "BACKEND": "django.core.cache.backends.db.DatabaseCache",
+ "LOCATION": "ctrack_cache_table",
}
}
@@ -264,13 +260,13 @@ LOGGING = {
# django-allauth
# ------------------------------------------------------------------------------
-ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", True)
+ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", False)
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_AUTHENTICATION_METHOD = "username"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_EMAIL_REQUIRED = True
# https://django-allauth.readthedocs.io/en/latest/configuration.html
-ACCOUNT_EMAIL_VERIFICATION = "mandatory"
+ACCOUNT_EMAIL_VERIFICATION = "none"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_ADAPTER = "ctrack.users.adapters.AccountAdapter"
# https://django-allauth.readthedocs.io/en/latest/configuration.html