-
-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathtest_settings.py
More file actions
32 lines (24 loc) · 677 Bytes
/
test_settings.py
File metadata and controls
32 lines (24 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from __future__ import annotations
import os
from django.urls import include
from django.urls import path
PROJECT_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), "payments"))
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(PROJECT_ROOT, "templates")],
}
]
SECRET_KEY = "NOTREALLY"
PAYMENT_HOST = "example.com"
INSTALLED_APPS = ["payments", "django.contrib.sites"]
ROOT_URLCONF = "test_settings"
urlpatterns = [
path("payments/", include("payments.urls")),
]
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
}
}