django2+python3.6.5多文件上傳的簡易代碼

這段時間在進行django網頁開發中碰見多文件同時上傳的問題,如下是我的解決方案。html 一、django 在項目settings.py中設定:post STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') # upload folder MEDIA_URL = '/media/' MEDIA_ROOT =
相關文章
相關標籤/搜索