Empty Request.FILES with Django Upload forms

后端 未结 5 686
滥情空心
滥情空心 2020-12-08 02:03

Trying to use a very simple form to upload a file into a new class instance. I am expecting to have both files in request.FILES but it\'s empty. I am on the bun

5条回答
  •  离开以前
    2020-12-08 02:46

    I found that If you put put the form in a content block then it seems to work

        {% block content %}
    
    {{ wayfinder_map_form|as_uni_form }}
    {% endblock %}

提交回复
热议问题