There are many articles on the web saying that adding a field in models.py to modify the app name, I tried the 1.8 version. See the official documentation for instructions,
The following changes are more reliable.
Refer to Configuring Applications description in https://docs.djangoproject.com/en/1.8/ref/applications/.
Here's a demonstration of creating an application inventory
Step 1. In the __init__.py that applies inventory, add the code
admin, auth
admin.default_app_config = ' inventory.admin.AdminConfig '
auth.default_app_config = ' Inventory.admin.AuthConfig '
default_app_config = ' Inventory.admin.InventoryConfig '
Step 2. Add code in the admin.py that applies inventory,
from django.contrib Import admin from Django.contrib.auth.apps Import authconfig as _authconfig from Django.contrib.admin.apps Import adminconfig as _adminconfig from django.apps Import AppConfig from inventory import Models class Authconfig (_authconfig): name = ' Django.contrib.auth ' verbose_name = U ' user Management '
class Adminconfig (_adminconfig): name = ' django.contrib.admin ' verbose_name = U ' background management '
Clas S inventoryconfig (AppConfig): name = U ' inventory ' verbose_name = U ' Inventory module Management '