Hello, I've encountered an issue with a Django project that I was running under CyberPanel 3.
Normally, under certain conditions, when new data is saved to the database, a new identifier is created for the field. While testing locally, it worked as expected, but in production, it failed to send.
After some research, I realized that signals must be loaded, either by adding them to the ready()
method in the apps.py
file, like this, and ensuring that the app is loaded into settings.py
, as in my case: 'users.apps.UsersConfig'
class UsersConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'users'