On Monday, 8 August 2011 11:08:29 UTC+1, oops wrote:
>
> Hi,
>
> I try to get a request object out of views.py, and could not get the 
> reqeust object through "def demo(request)".
>
> Could you tell me how to get it??
>
> Or is there  other ways to get the same goal.
>
> Thanks very much
>
> regards,
> kejun  
>


If you need the request somewhere outside of a views, you need to pass it in 
from there.

Since you don't say what your goal is, we can't advise on other methods to 
reach it.
--
DR.

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

Reply via email to