Sunday, September 4, 2011

Re: Problem with file upload!

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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate