Skip to content

Commit 35397fa

Browse files
committed
fix media root to be on local scope
1 parent 74f810a commit 35397fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: backend/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@
202202
STATIC_URL = "/staticfiles/"
203203
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
204204
MEDIA_URL = "/media/"
205-
MEDIA_ROOT = str(BASE_DIR / "media/")
206205

207206
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
207+
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
208208

209209
# Default primary key field type
210210
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field

0 commit comments

Comments
 (0)