Re: Tasty Pie in django

2015-07-29 Thread Anubhav Kaushik
gt; > 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 >>

Re: Tasty Pie in django

2015-07-29 Thread Anubhav Kaushik
yes i did , still i got no clues why save function in model related to the resource gets called three times. On Tuesday, July 28, 2015 at 11:51:03 AM UTC+5:30, Anubhav Kaushik wrote: > > I am looking on code that someone else wrote , i am new to tasty pie , so > what i have understood

Re: Tasty Pie in django

2015-07-28 Thread Anubhav Kaushik
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+unsubscr...@googlegroups.com.

Tasty Pie in django

2015-07-28 Thread Anubhav Kaushik
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

Tasty pie reutrns 401 unauthorized even when i commented out authorization and authentication

2015-05-07 Thread Anubhav Kaushik
i added v1_api.register(ArtistResource()) in my main url and this is the code in meta class class Meta: queryset = Artist.objects.all() resource_name = 'artist' #authentication = Authentication() # authorization = Authorization() excludes = ['rating',

Re: Require code explaination

2015-04-29 Thread Anubhav Kaushik
some code. > > - Is this code in an app you are working with ? Did you write this code ? > > - Is the audio file being served by your application through the default > wsgi server included in django? > > F. > > > On Apr 29, 2015, at 7:55 AM, Anubhav Kaushik <anubhav...

Re: Require code explaination

2015-04-29 Thread Anubhav Kaushik
lear I think: > > http://wiki.nginx.org/XSendfile > > Looks like an nginx directive to serve a file as the content of the > response. > > F. > > > On Apr 29, 2015, at 7:28 AM, Anubhav Kaushik <anubhav...@gmail.com > > wrote: > > > > ye

Re: Require code explaination

2015-04-29 Thread Anubhav Kaushik
yes francois ,when i searched the term ,all i got was links related to nginx. On Wednesday, April 29, 2015 at 4:55:58 PM UTC+5:30, François Schiettecatte wrote: > > Which part do you mean? The 'X-Accel-Redirect’ ? > > François > > > On Apr 29, 2015, at 6:08 AM, Anu

Require code explaination

2015-04-29 Thread Anubhav Kaushik
response = HttpResponse() protected = settings.PROTECTED_AUDIO_ROOT + path logger.info('Protected path: %s', protected) response["X-Accel-Redirect"] = protected response["Content-Type"] = "audio/mpeg" return response -- You received this message because you