July 2019
Beginner to intermediate
302 pages
9h 38m
English
Follow these steps to understand how signaling works:
from blinker import Namespace
catalog_signals = Namespace()
product_created = catalog_signals.signal('product-created')
category_created = catalog_signals.signal('category-created')
We will use Namespace to create signals, which will create them in a custom namespace rather than in the global namespace, thereby helping with the clean management of signals. We created two signals, where the intent of both is clear by their names.
Read now
Unlock full access