Re: how to get the variable in the context

2012-04-28 Thread Thomas Rega
Am 28.04.12 11:11, schrieb DanYun Liu: I defined a context processor to pass the login user info to the template. and, I also need to use it in the view. is there any way to get the variable from the context? http://stackoverflow.com/questions/41547/always-including-the-user-in-the-django-te

Re: how to get the variable in the context

2012-04-28 Thread Amao Zhao
Dear DanYun Liu Django has the biuld-in middlewar with the user. You can use the user in your templates immediately. 在 2012年4月28日星期六,DanYun Liu 写道: > I defined a context processor to pass the login user info to the template. > and, I also need to use it in the view. > > is there any way t

how to get the variable in the context

2012-04-28 Thread DanYun Liu
I defined a context processor to pass the login user info to the template. and, I also need to use it in the view. is there any way to get the variable from the context? -- Pursuit the freedom of the soul. -- You received this message because you are subscribed to the Google Groups "Django us