📜  django rest 框架身份验证 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:56.277000             🧑  作者: Mango

代码示例2
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [
        'rest_framework.authentication.BasicAuthentication',
        'rest_framework.authentication.SessionAuthentication',
    ]
}