我的settings.py
文件中有以下代码
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/'
urls.py
和文件中的这一行
urlpatterns += staticfiles_urlpatterns()
开发服务器能够提供目录中的内容,/static/
但不能提供/media/
目录我如何将其添加到 urls.py?