Django


1106 浏览 5 years, 9 months

9.2 AppConfig

版权声明: 转载请注明出处 http://www.codingsoho.com/
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _

class EquipmentsConfig(AppConfig):
    name = 'equipments'
    verbose_name = _("equipments")

在init文件添加

default_app_config = 'equipments.apps.EquipmentsConfig'