Wednesday, February 2, 2011

Re: Using custom / Extending default Request Object

My RequestObject must contain information about user device (mobile,
tablets etc) with device capatibilites (resolution, video codecs
etc) .
It's a data collection not simple string. Then I want use it in views
and templates.

On Feb 2, 9:27 pm, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Wednesday, February 2, 2011 8:12:30 PM UTC, Tereska wrote:
>
> > I have to extend HttpRequest class and be able to use it in views
> > (request argument in each view must be instance of MyHttpRequest
> > class)
>
> > How to do that? (without extending BaseHandler)
>
> Why do you need to do this? What is your actual problem? The likelihood is
> that this is not the way to solve it.
> --
> DR.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment