On 3/9/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
see http://www.djangoproject.com/documentation/forms/ in the finished
version of the "create_form" template it uses "action="" with no
trailing slash.


A . means the current page, and given the page was generated by django, which always adds a / to all page URLs its gauranteed that current page will end with a /.

. is django way of handling form is there is any, makes it more "portable", one less thing to change when you are relocating your pages on your site, and your template need not know the actual page where the form would be deployed.

Django facilitates these things as best practices, you are completely free to follow whatever your requirements tell you. Its usually recommended to serve the form in the GET request and handle it in POST request on the same url.


--
Amit Upadhyay
Blog: http://www.rootshell.be/~upadhyay
+91-9867-359-701
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to