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
原文链接:SOLVED: django raises MultiValueDictKeyError at / ‘file’
© 版权声明
THE END
暂无评论内容