SOLVED: django raises MultiValueDictKeyError at / ‘file’

图片[1]-SOLVED: django raises MultiValueDictKeyError at / 'file' - 拾光赋-拾光赋
django raises MultiValueDictKeyError at / ‘file’
Sep 12 ’19
Comments: 4
Answers: 3
3

I’m trying to create a view for uploading a .csv file and parsing it on the template but it’s returning a

MultiValueDictKeyError at /

'file'

The template has


<form method="POST" enctype="multipart/form-data">{% csrf_token %}
<div class="file-field input-field">
<div class="btn">
<span>Upload a CSV FILE</span>
<input type="file" name="file">
</div>
<div class="file-path-wrapper">
 <input class="file-path


Open Full Question

原文链接:SOLVED: django raises MultiValueDictKeyError at / ‘file’

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容