阅读背景:

Django 1.4 - {{request.user。用户名}不会在模板中呈现。

来源:互联网 

In my view, I can print request.user.username, however in the template, {{request.user.username}} does not appear. To make this easy, I removed the logic from the function, and I am importing render_to_response & RequestContext.In my view, I can print request.user.username,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: