gt;
> On Wed, Jul 29, 2015 at 6:19 AM, Anubhav Kaushik > 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
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
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.
T
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 so
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',
>
> - 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 > wrote
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 > wrote:
> >
> > yes francois ,when i searche
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
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 ar
9 matches
Mail list logo