You need to change your url for datatable
, since the view takes a file
parameter you need to add it in the url.
that's why it is giving you error for argument file missing
urlpatterns = [
path('', views.upload,name='upload'),
path('datatable/<str:file>',views.datatable,name='datatable')
]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…