Got it, thank you for very good explanation.

понедељак, 08. мај 2017. 00.54.35 UTC+2, Vijay Khemlani је написао/ла:
>
> 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 <javascript:>> 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...@googlegroups.com <javascript:>. 
> > To post to this group, send email to django...@googlegroups.com 
> <javascript:>. 
> > 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/2b0240ba-a222-403c-9621-1dc268b38300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to