[settings] remove some empty lines

This commit is contained in:
bronsen 2024-11-21 12:29:19 +01:00
parent d635b7ba05
commit ca09a2916e

View file

@ -7,15 +7,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
class Base(Configuration): class Base(Configuration):
DEBUG = False DEBUG = False
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
INSTALLED_APPS = [ INSTALLED_APPS = [
"dx", "dx",
] ]
ROOT_URLCONF = "dx.urls" ROOT_URLCONF = "dx.urls"
SECRET_KEY = "django-insecure-cbgvn=orgh$&6l-w91pp2=(b#hjwe1z&ijwiafgt(py1lq5i85" SECRET_KEY = "django-insecure-cbgvn=orgh$&6l-w91pp2=(b#hjwe1z&ijwiafgt(py1lq5i85"
TEMPLATES = [ TEMPLATES = [
{ {
"BACKEND": "django.template.backends.django.DjangoTemplates", "BACKEND": "django.template.backends.django.DjangoTemplates",
@ -23,23 +19,19 @@ class Base(Configuration):
"APP_DIRS": True, "APP_DIRS": True,
}, },
] ]
USE_TZ = True USE_TZ = True
class Dev(Base): class Dev(Base):
# Dangerous: disable host header validation # Dangerous: disable host header validation
ALLOWED_HOSTS = ["*"] ALLOWED_HOSTS = ["*"]
DATABASES = { DATABASES = {
"default": { "default": {
"ENGINE": "django.db.backends.sqlite3", "ENGINE": "django.db.backends.sqlite3",
"NAME": "db.sqlite3", "NAME": "db.sqlite3",
}, },
} }
DEBUG = True DEBUG = True
INSTALLED_APPS = Base.INSTALLED_APPS + ["django_extensions"] INSTALLED_APPS = Base.INSTALLED_APPS + ["django_extensions"]