I have the following code in my settings.py file
MEDIA_ROOT_PATH = MEDIA_FILES = os.path.join(PROJECT_ROOT, "media")
MEDIA_ROOT = MEDIA_ROOT_PATH
MEDIA_URL = '/media/'
STATIC_ROOT_PATH = STATIC_FILES = os.path.join(PROJECT_ROOT, "static")
STATIC_ROOT = STATIC_ROOT_PATH
STATIC_URL = '/static/'
and this line in the urls.py file
urlpatterns += staticfiles_urlpatterns()
The developement server is able to serve contents from the /static/ directory but not /media/ directory how can I add that to the urls.py?
Add the following to your url patterns: