Skip to content

Commit c28ee6a

Browse files
committed
fix urls
1 parent 934673d commit c28ee6a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

db.sqlite3

0 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.

myforum/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import os
1616

1717
# Build paths inside the project like this: BASE_DIR / 'subdir'.
18-
BASE_DIR = Path(__file__).resolve().parent.parent
18+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1919

2020

2121
# Quick-start development settings - unsuitable for production
@@ -135,7 +135,7 @@
135135
DATABASES = {
136136
'default': {
137137
'ENGINE': 'django.db.backends.sqlite3',
138-
'NAME': BASE_DIR / 'db.sqlite3',
138+
'NAME': os.path.join(BASE_DIR,'db.sqlite3'),
139139
}
140140
}
141141

@@ -178,7 +178,7 @@
178178
# https://docs.djangoproject.com/en/3.2/howto/static-files/
179179

180180

181-
STATIC_ROOT = BASE_DIR / 'app/static'
181+
STATIC_ROOT = os.path.join(BASE_DIR, 'app/static')
182182
STATIC_URL = '/static/'
183183
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'frontend/build/static'), )
184184

0 commit comments

Comments
 (0)