环境
Django: 2.2.10
Python: 3.7.6
代码
vim myapp/apps.py
from django.apps import AppConfig
class MyappConfig(AppConfig):
name = 'myapp'
verbose_name = '自定义APP名字'
vim myapp/__init__.py
default_app_config = 'myapp.apps.MyappConfig'
Django: 2.2.10
Python: 3.7.6
vim myapp/apps.py
from django.apps import AppConfig
class MyappConfig(AppConfig):
name = 'myapp'
verbose_name = '自定义APP名字'
vim myapp/__init__.py
default_app_config = 'myapp.apps.MyappConfig'