Django Book 翻译
菜单>:
TOC
返回
原文:
Django provides built-in view functions for handling logging in and out (and a few other nifty tricks), but before we get to those, lets take a look at how to log users in and out by hand. Django provides two functions to perform these actions in ``django.contrib.auth`` : ``authenticate()`` and ``login()`` .
翻译:
Django 提供内置的视图(view)函数用于处理登录和退出 (以及其他奇技淫巧),但在开始前,我们来看看如何手工登录和退出,Django 在 ``django.contrib.auth`` 中提供了两个函数来处理这些事情—— ``authenticate()`` 和 ``login()`` 。
备注:
译者: