podjango: Configure uploaded media directory

This commit is contained in:
Ben Sturmfels 2024-04-26 16:13:00 +10:00
parent 1a05c6391c
commit d2561fbc41
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

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