How to change app name in Django admin?

后端 未结 8 1949
小鲜肉
小鲜肉 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:53

    In apps.py

     from django.apps import AppConfig
     class AccountConfig(AppConfig):
        name = 'app name'
        verbose_name = "new app name"
    
    0 讨论(0)
  • 2020-12-14 08:55

    In Django 2 we can use verbose_name in apps.py but we have to specify the CLass Config in init.py

    See related doc here

    0 讨论(0)
提交回复
热议问题