You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Django/doc/oauth/apps.py

11 lines
374 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 导入Django的AppConfig类用于配置应用的基本信息
from django.apps import AppConfig
class OauthConfig(AppConfig):
"""
oauth应用的配置类用于定义应用的核心信息
继承自Django的AppConfig是Django应用配置的标准方式
"""
# 应用的名称Django通过该名称识别和管理当前应用
name = 'oauth'