28 lines
894 B
Python
28 lines
894 B
Python
from pathlib import Path
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
SECRET_KEY = "django-insecure-local-design-showcase-only"
|
|
DEBUG = True
|
|
ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
|
|
INSTALLED_APPS = [
|
|
"django.contrib.contenttypes",
|
|
"django.contrib.staticfiles",
|
|
"core",
|
|
]
|
|
MIDDLEWARE = [
|
|
"django.middleware.security.SecurityMiddleware",
|
|
"django.middleware.common.CommonMiddleware",
|
|
]
|
|
ROOT_URLCONF = "config.urls"
|
|
TEMPLATES = [{
|
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
"DIRS": [],
|
|
"APP_DIRS": True,
|
|
"OPTIONS": {"context_processors": ["django.template.context_processors.request"]},
|
|
}]
|
|
WSGI_APPLICATION = "config.wsgi.application"
|
|
ASGI_APPLICATION = "config.asgi.application"
|
|
STATIC_URL = "static/"
|
|
STATICFILES_DIRS = [BASE_DIR / "dist"] if (BASE_DIR / "dist").exists() else []
|
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|