Django has the biuld-in middlewar with the user.
You can use the user in your templates immediately.
在 2012年4月28日星期六,DanYun Liu 写道:
-- 在 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 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 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.
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