update
This commit is contained in:
@@ -142,3 +142,8 @@ STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
|
||||
|
||||
# AUTH_USER_MODEL为我们自定义的用户类
|
||||
AUTH_USER_MODEL = "server_auth.MindUser"
|
||||
|
||||
# 自定义 登陆手段
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
'server_auth.lib.auth.AuthBackend',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user