Skip to content

Commit 638d905

Browse files
authored
minor: fix tests.settings (#90)
Required changes to make it usable with `djanog-admin`.
1 parent cf0b371 commit 638d905

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/settings.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
import os
2+
3+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
14
DATABASES = {
2-
'default': {'ENGINE': 'django.db.backends.sqlite3'}
5+
'default': {
6+
'ENGINE': 'django.db.backends.sqlite3',
7+
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
8+
}
39
}
410
INSTALLED_APPS = [
511
'django.contrib.admin',
@@ -19,5 +25,10 @@
1925
{
2026
'BACKEND': 'django.template.backends.django.DjangoTemplates',
2127
'APP_DIRS': True,
28+
'OPTIONS': {
29+
'context_processors': [
30+
'django.contrib.auth.context_processors.auth',
31+
],
32+
},
2233
},
2334
]

0 commit comments

Comments
 (0)