Django Hard-coded Form Not Passing POST Data to request.POST QueryDict

preview_player
Показать описание
If you have a Django form not submitting data to your Django view, one reason could be that you didn't define the input field's name parameter. If your QueryDict is only being populated with the csrfmiddleware token key, then try manually adding the "name" attribute to the form field.
Рекомендации по теме
Комментарии
Автор

Man this is awesome advice :D I was nearly going to be mad because of this. Thank you very much!!

compeng
Автор

Great explanation! This video solves my all doubts thanks for posting

aryamanz
Автор

Great work. help me understand how to loop throug a queryDict key. Thanks

rogersbyamukama
Автор

I have thr name attribute in each form input then also i am not receiving the data

vanshikakejriwal