We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0b371 commit 638d905Copy full SHA for 638d905
tests/settings.py
@@ -1,5 +1,11 @@
1
+import os
2
+
3
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
4
DATABASES = {
- 'default': {'ENGINE': 'django.db.backends.sqlite3'}
5
+ 'default': {
6
+ 'ENGINE': 'django.db.backends.sqlite3',
7
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
8
+ }
9
}
10
INSTALLED_APPS = [
11
'django.contrib.admin',
@@ -19,5 +25,10 @@
19
25
{
20
26
'BACKEND': 'django.template.backends.django.DjangoTemplates',
21
27
'APP_DIRS': True,
28
+ 'OPTIONS': {
29
+ 'context_processors': [
30
+ 'django.contrib.auth.context_processors.auth',
31
+ ],
32
+ },
22
33
},
23
34
]
0 commit comments