Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

import signal module to AppConfig #1

Closed
namwooo opened this issue Jun 18, 2018 · 1 comment
Closed

import signal module to AppConfig #1

namwooo opened this issue Jun 18, 2018 · 1 comment
Assignees

Comments

@namwooo
Copy link

namwooo commented Jun 18, 2018

Django-2-by-Example/Chapter06/bookmarks/images/apps.py

The signal module has to be imported in AppConfig.__init__() method, not AppConfig.ready() method. Otherwise, the m2m_changed signal is not triggered.

Here is Django official documentation,
https://docs.djangoproject.com/en/2.0/ref/signals/#class-prepared

@praju89
Copy link
Contributor

praju89 commented Sep 3, 2018

Thank you namwoo-andreea for the information. We will update the same on our website.

@praju89 praju89 closed this as completed Sep 3, 2018
MurtazaTinwala pushed a commit that referenced this issue Feb 14, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

2 participants