Tasty Pie in django

37 views
Skip to first unread message

Anubhav Kaushik

unread,
Jul 28, 2015, 2:21:03 AM7/28/15
to Django users
I am looking on code that someone else wrote , i am new to tasty pie , so what i have understood that when ever someone gives a "POST" request then resource's save method gets called.
what is happening with my code is whenever some gives "POST request" , save method gets called thrice and for some other resource it gets called twice?

Can someone explain me the flow for tastypie and if possible ,the reason of wicked behaviour of code.

Anubhav Kaushik

unread,
Jul 28, 2015, 11:19:29 PM7/28/15
to Django users, anubhav...@gmail.com
If some one is having difficulty understanding my question. PLZ ASK.

Avraham Serour

unread,
Jul 29, 2015, 3:15:01 AM7/29/15
to django-users
tastypie has a very good documentation, have you tried reading it to understand how it works?

On Wed, Jul 29, 2015 at 6:19 AM, Anubhav Kaushik <anubhav...@gmail.com> wrote:
If some one is having difficulty understanding my question. PLZ ASK.

--
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.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9d2d2fd1-f261-4a26-9682-ff2f61acee61%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Anubhav Kaushik

unread,
Jul 29, 2015, 6:45:00 AM7/29/15
to Django users, tov...@gmail.com
yes i did , still i got no clues why save function in model related to the resource gets called three times.
Reply all
Reply to author
Forward
0 new messages