Initial commit
This commit is contained in:
commit
97e799fd52
61 changed files with 2252 additions and 0 deletions
52
tests/settings.py
Normal file
52
tests/settings.py
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
"""A minimal service, standing in for tdas/odms/ops."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
SECRET_KEY = "test-only"
|
||||
DEBUG = True
|
||||
USE_TZ = True
|
||||
USE_I18N = True
|
||||
LANGUAGE_CODE = "en"
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"django.contrib.contenttypes",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.sessions",
|
||||
"django.contrib.messages",
|
||||
"django.contrib.staticfiles",
|
||||
"yksa_kit",
|
||||
"yksa_web",
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||
"yksa_kit.middleware.UserTimezoneMiddleware",
|
||||
"django.middleware.locale.LocaleMiddleware",
|
||||
"django.middleware.common.CommonMiddleware",
|
||||
"django.middleware.csrf.CsrfViewMiddleware",
|
||||
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
||||
"django.contrib.messages.middleware.MessageMiddleware",
|
||||
]
|
||||
|
||||
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
|
||||
|
||||
ROOT_URLCONF = "tests.urls"
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
||||
"DIRS": [BASE_DIR / "templates"],
|
||||
"APP_DIRS": True,
|
||||
"OPTIONS": {
|
||||
"context_processors": [
|
||||
"django.template.context_processors.request",
|
||||
"django.contrib.auth.context_processors.auth",
|
||||
"django.contrib.messages.context_processors.messages",
|
||||
"yksa_kit.context_processors.ui_preferences",
|
||||
],
|
||||
},
|
||||
},
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue