def handle(self, *args, **options): # Make sure that the library knows about all the types of feeds. autodiscover() records = self.get_records() updater = FeedRecordUpdater() updater.update_all(records)
def handle(self, *args, **options): # Assuming that the feeds have been updated autodiscover() dispatcher = SubscriptionEmailer() subscribers = Subscriber.objects.all() for subscriber in subscribers: dispatcher.dispatch_subscriptions_for(subscriber)