in code
On Sep 4, 7:00 pm, Simon Connah <simon.connah...@gmail.com> wrote:
> On 4 Sep 2011, at 11:25, Ludvig wrote:
>
> > added a print statement after self.request.post == "POST" and it came
> > out, so its a post.
>
> You should use:
>
> if request.method == 'POST':
>
> instead. That is the correct method to determine whether a URL was requested using the POST method.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment