2👍
✅
The application name
and the application label
are different things. Directly quoting from the documentation:
The AppConfig.name
is the:
Full Python path to the application
and AppConfig.label
is the
Short name for the application
Furthermore it is also said about the label
that
This attribute allows relabeling an application when two applications
have conflicting labels
Hence you want to only change the label
and not change the name
:
from django.apps import AppConfig
class AuthConfig(AppConfig):
name = "core.auth" # I assume it was this according to your shown INSTALLED_APPS, if not it should be what it originally was
label = "core_auth"
verbose_name = "Core Auth"
Also I believe instead of default_app_config = 'core.auth.AuthConfig'
it should be default_app_config = 'core.auth.apps.AuthConfig'
since you declare AuthConfig
in the apps.py
file.
Source:stackexchange.com