Set the xadmin menu directory name

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:

Published 42 original articles · praised 11 · 20,000+ views

Guess you like

Origin blog.csdn.net/QWERTY55555/article/details/105477048