On Tue, Dec 7, 2010 at 3:26 PM, Keats <neoke...@gmail.com> wrote:
> Hi,
> if you have
> <form method="POST" action="/blabla/topic/reply/114-test%20?/"
> id="addReplyForm" name="addReplyForm">
> ...
> </form>
>
> when the form is submitted, django complains about this :
> Request Method:         POST
> Request URL:    http://mysite/blabla/topic/reply/114-test%20?/
> Django Version:         1.3 pre-alpha SVN-13865
> Exception Type:         RuntimeError
> Exception Value:
>
> You called this URL via POST, but the URL doesn't end in a slash and
> you have APPEND_SLASH set.
>
> REQUEST_URI     '/blabla/topic/reply/114-test%20?/'
> PATH_INFO       u'/blabla/topic/reply/114-test '
> PATH_TRANSLATED         '/my.wsgi/blabla/topic/reply/114-test '
>
> can anyone tell if this is a bug of django ?
>
> thanx.
> Keats.
>

Why do you think it is a bug? The URL doesn't match one in your
urlconf, but would with an appended slash, which is missing from the
URL (the '/' in your URL is part of the query string). Since this is a
POST request, it cannot redirect without losing data, so it is a
runtime error.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to