sorted imports

This commit is contained in:
gw3000 2023-06-19 21:52:59 +02:00
parent e721d9faae
commit 166de02bdc

View file

@ -48,14 +48,14 @@ INSTALLED_APPS = [
# Crispy forms, modals and bootstrap5 # Crispy forms, modals and bootstrap5
# ----------------------------------- # -----------------------------------
"bootstrap_modal_forms", "bootstrap_modal_forms",
"crispy_forms",
"crispy_bootstrap5", "crispy_bootstrap5",
"crispy_forms",
# ----------------------------------- # -----------------------------------
# My Apps # My Apps
# ----------------------------------- # -----------------------------------
"sites",
"fbf", "fbf",
"rescuer", "rescuer",
"sites",
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -89,7 +89,7 @@ TEMPLATES = [
AUTHENTICATION_BACKENDS = [ AUTHENTICATION_BACKENDS = [
# Needed to login by username in Django admin, regardless of `allauth` # Needed to login by username in Django admin, regardless of `allauth`
"django.contrib.auth.backends.ModelBackend", "django.contrib.auth.backends.ModelBackend",
# allauth specific authentication methods, such as login by e-mail # Allauth specific authentication methods, such as login by e-mail
"allauth.account.auth_backends.AuthenticationBackend", "allauth.account.auth_backends.AuthenticationBackend",
] ]
@ -149,11 +149,11 @@ STATICFILES_DIRS = [BASE_DIR / "static"]
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# crispy forms # Crispy forms
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5" CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5" CRISPY_TEMPLATE_PACK = "bootstrap5"
# allauth # Allauth
SITE_ID = 1 SITE_ID = 1
ACCOUNT_AUTHENTICATION_METHOD = "username_email" ACCOUNT_AUTHENTICATION_METHOD = "username_email"
ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_EMAIL_REQUIRED = True
@ -164,7 +164,7 @@ ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
ACCOUNT_LOGOUT_REDIRECT_URL = "/" ACCOUNT_LOGOUT_REDIRECT_URL = "/"
ACCOUNT_LOGOUT_ON_GET = True ACCOUNT_LOGOUT_ON_GET = True
ACCOUNT_SESSION_REMEMBER = True ACCOUNT_SESSION_REMEMBER = True
ACCOUNT_USERNAME_BLACKLIST = ["gw", "admin", "god"] ACCOUNT_USERNAME_BLACKLIST = ["admin", "god"]
ACCOUNT_USERNAME_MIN_LENGTH = 3 ACCOUNT_USERNAME_MIN_LENGTH = 3
ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_UNIQUE_EMAIL = True
LOGIN_REDIRECT_URL = "/bird/all" LOGIN_REDIRECT_URL = "/bird/all"