简体   繁体   中英

How Can i remove App Name from django Admin Panel?

Actually i want to remove app names from django admin panel how can i achieve this?? 在此处输入图片说明

You can achieve this by setting the verbose_name in your apps.py as an empty string.

Like so, using Post to illustrate

In apps.py for Post pass an empty string into the verbose_name

from django.apps import AppConfig


class PostConfig(AppConfig):
    name = 'post'
    verbose_name = ' '

Then in Post __init.py__ add

default_app_config = 'post.apps.PostConfig'

That's one hack to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM