Django Book 翻译
菜单>:
TOC
返回
原文:
The Django admin system is tightly coupled to Djangos own database-backed ``User`` object described in Chapter 12. The best way to deal with this is to create a Django ``User`` object for each user that exists for your back-end (e.g., in your LDAP directory, your external SQL database, etc.). Either you can write a script to do this in advance or your ``authenticate`` method can do it the first time a user logs in.
翻译:
如12章中所述,Django管理系统紧密连接于其自己后台数据库的 ``User`` 对象。实现这个功能的最好办法就是为您的后台数据库(如LDAP目录,外部SQL数据库等)中的每个用户都创建一个对应的Django User对象。您可以提前写一个脚本来完成这个工作,也可以在某个用户第一次登陆的时候在 ``authenticate`` 方法中进行实现。
备注:
译者: