1. 각 form 마다 다른 action 을 지정해서 각자 다른 views 에서 처리하라.


2. 한 views에서 받고 POST 데이터에서 submit button 값을 읽어라.

 그러면 어느 버튼을 클릭했는지 알 수 있다.


버튼에 value 지정해주고 읽는 방법:

http://stackoverflow.com/questions/866272/how-can-i-build-multiple-submit-buttons-django-form



원글 출처 : http://stackoverflow.com/questions/1395807/proper-way-to-handle-multiple-forms-on-one-page-in-django

다음과 같이 하면된다.


document.getElementById("myForm").submit();

+ Recent posts