1. Enter apps.py and insert as follows:
#_*_encoding:utf-8_*_
from django.apps import AppConfig
class CoursesConfig(AppConfig):
name = 'courses'
# 菜单目录名
verbose_name = u"课程"
Second, set the __init__.py file as follows
default_app_config = "courses.apps.CoursesConfig"
The effect is as follows: