📜  django 在管理页面中显示图像 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:43.836000             🧑  作者: Mango

代码示例1
in main URL:

from django.conf import settings
from django.conf.urls.static import static

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)