﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9771	Wrong form action	tutonien	Jacob	"Hello,

There may be an improvement in the form of the [http://docs.djangoproject.com/en/dev/intro/tutorial04/#write-a-simple-form fourth part of the tutorial].

The form sends the vote to /polls/123/vote/ (with 123 the poll id) but the form itself is in the detail page which URL is /polls/123/. Therefore, it would make more sense to use a relative URL instead of an absolute one.

{{{
<form action=""/polls/{{ poll.id }}/vote/"" method=""post"">
}}}

This way, the poll app would be more ""pluggable"" because the polls directory does not need to be at the root of the server.

{{{
<form action=""vote/"" method=""post"">
}}}

Thank you for your time and your good work."		closed	Documentation	1.0		wontfix	tutorial, form, post, action, absolute		Accepted	0	0	0	0	0	0
