podjango: Configure uploaded media directory

This commit is contained in:
Ben Sturmfels 2024-04-26 16:13:00 +10:00
parent 1969478a69
commit 3485926915

View file

@ -129,6 +129,7 @@ STATICFILES_DIRS = [
BASE_DIR / 'static',
]
MEDIA_ROOT = BASE_DIR / 'media'
MEDIA_URL = '/media/'
MIDDLEWARE = [