5
Replace
INSTALLED_APPS = [
...
'users',
...
]
for
INSTALLED_APPS = [
...
'users.apps.UsersConfig',
...
]
If you don’t specify the path for the app configuration class, Django will use the base one as mentioned in the docs https://docs.djangoproject.com/en/3.0/ref/applications/. So your configuration was not being used which caused the signal file to not be imported during app registry and by consequence the signals were not registered.
2
You can add app's config
to either of two files.
- In your
settings.py
file’sINSTALLED_APPS
, as mentioned above.
OR,
- In your related
app
‘s__init__.py
file like this (in this example, the related app isusers
):
default_app_config = 'users.apps.UsersConfig'
- [Django]-Render to response to a redirected url in Django
- [Django]-Get list_display in django admin to display the 'many' end of a many-to-one relationship
- [Django]-Local Django website won't load in browser
Source:stackexchange.com