Skip to content

Commit 1826750

Browse files
committed
Fix tests settings base dir
1 parent edb5282 commit 1826750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
44

5-
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
5+
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
66
BASE_DIR = os.path.dirname(PROJECT_DIR)
77

88
SECRET_KEY = 'foobar'
@@ -32,7 +32,7 @@
3232
# applications which are used by default.
3333
# https://docs.djangoproject.com/en/stable/ref/settings/#staticfiles-dirs
3434
STATICFILES_DIRS = [
35-
os.path.join(PROJECT_DIR, "tests", "static")
35+
os.path.join(BASE_DIR, "tests", "static")
3636
]
3737

3838
ROOT_URLCONF = 'tests.urls'

0 commit comments

Comments
 (0)