form表单上传文件 urls.py from django.conf.urls import urlfrom django.contrib import adminfrom app01 import viewsurlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index/$',views.index), url(r'^upload_file/$', views.upload_file), ] views.py from djang…