Thanks, It worked.
On Mon, Feb 18, 2013 at 1:00 PM, Tom Evans wrote:
> On Mon, Feb 18, 2013 at 2:41 PM, Serge G. Spaolonzi
> wrote:
> > Thanks Pankaj, In this case I could not use an HttpResponse because the
> > helper method I am developing doesn't return a respose it returns a dict
> or
> >
On Mon, Feb 18, 2013 at 2:41 PM, Serge G. Spaolonzi wrote:
> Thanks Pankaj, In this case I could not use an HttpResponse because the
> helper method I am developing doesn't return a respose it returns a dict or
> raises an exception if the user is not authenticated.
> For example:
>
> def get_ser
Thanks Pankaj, In this case I could not use an HttpResponse because the
helper method I am developing doesn't return a respose it returns a dict or
raises an exception if the user is not authenticated.
For example:
def get_server_time(request):
time_dictionary = helper_method()
#Rest
Hey Serge,
Here is a brief description of how status code is set in request response
cycle of Django.
*Http404* inherits from *Exception* defined here -
https://github.com/django/django/blob/1.4.3/django/http/__init__.py#L132-L133
*get_response() method of django.core.handlers.base.BaseHandler h
4 matches
Mail list logo