Django Book 翻译
菜单>:
TOC
返回
原文:
With that installation out of the way, were ready to deal with users in view functions. The main interface youll use to access users within a view is ``request.user`` ; this is an object that represents the currently logged-in user. If the user isnt logged in, this will instead be an ``AnonymousUser`` object (see below for more details).
翻译:
这样安装后,我们就可以在视图(view)的函数中用处理user了。在视图中存取users,主要用 ``request.user`` ;这个对象表示当前已登录的用户,如果用户还没登录,这就是一个 ``匿名`` 对象(细节见下)
备注:
译者: