Django for ISchoolers: Difference between revisions
Content added Content deleted
imported>Aldeka |
imported>Aldeka |
||
Line 1,054: | Line 1,054: | ||
===Create the form=== |
===Create the form=== |
||
Recall that the prototype spec allows users to add answers to questions. We are going to use a form for that functionality. As an alternative, we could have used AJAX Requests |
Recall that the prototype spec allows users to add answers to questions. We are going to use a form for that functionality. As an alternative, we could have used AJAX Requests or some other mechanism. |
||
* Update our question detail template (qandabear/detail.html) to contain an HTML <form> element: |
* Update our question detail template (qandabear/detail.html) to contain an HTML <form> element: |
||
Line 1,101: | Line 1,101: | ||
* Review your work at [http://127.0.0.1:8000/questions/1/ http://127.0.0.1:8000/questions/1/] . |
* Review your work at [http://127.0.0.1:8000/questions/1/ http://127.0.0.1:8000/questions/1/] . |
||
* Save and commit. |
* Save and commit. |
||
===Process the form=== |
===Process the form=== |