django怎么实现从数据库获取图片在前端显示

时间:2020-10-07 13:09:17   收藏:0   阅读:336
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings

urlpatterns = [
path(‘admin/‘, admin.site.urls),
path(‘student/‘, include(‘app01.urls‘)),
path(‘student/‘, include(‘app01.urls‘)),
]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)

原文:https://www.cnblogs.com/tans75/p/13776889.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!