How to change app name in Django admin?

后端 未结 8 1976
小鲜肉
小鲜肉 2020-12-14 08:03

I created \'frontend\' application using ./manage.py startproject frontend

But for some reason I just want to change the app name in the Dj

8条回答
  •  误落风尘
    2020-12-14 08:41

    apps.py

    from django.apps import AppConfig
    
    class FrontendConfig(AppConfig):
        name = 'frontend'
        verbose_name = "Your Home Page"
    

    __ init__.py

    default_app_config = 'frontend.apps.FrontendConfig'
    

    https://docs.djangoproject.com/en/2.2/ref/applications/

提交回复
热议问题