Assuming this view is for a path like

http://example.com/shortener

If you make a GET request to it (as in navigating to it in a browser)
it displays the form calling the "get" method in the view. When you
submit the form it usually does so to the same URL but with the POST
method.

So in this case, GET => Displays form, POST => Handles form submission

On 5/7/17, Daniel Roseman <dan...@roseman.org.uk> wrote:
>
>
> On Sunday, 7 May 2017 17:21:10 UTC+1, Ismail Sarenkapic wrote:
>>
>> The question is, what is the purpose of get method here,when we have post
>>
>> method
>> is it useless in this case?If not what is function of get method?
>>
>>
> Why would it be useless? The get method is for GET requests, the post
> method is for POST requests.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c97e45cc-140e-4493-a697-3c214517bc99%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei3%2BjHMwrN4uB6FE-1_z7cRQkGrVm2aZxvmM2ZeU-8r3Xg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to