The name's Tega,
If I may ask you, what makes you favour making a management command as opposed to creating a simple post_save signal in your present situation.
From the django documentation, post_save is literally called on every save, something similar to the Publisher Subscriber pattern.
I'd really appreciate your response on this.
Regards,
Tega Ukavwe
Python Like English
On Thu, Oct 20, 2022 at 5:06 PM Aziz Mek <azizmek@gmail.com> wrote:
Hi All,I was wondering if you have come across the following:I have a field in the model that's empty, when the user fills it up and clicks Save, itshould trigger/call a management Command (This command is already build that sends emails ), Django docs say i can use call_command but not sure how to implement it with the saveI am just after the trigger really when the save takes placeMany thanks in advanceKind regardsAziz--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a0ca69f0-6065-4b86-a977-cfb6dcab8fd7n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BbC3qX6pyE2ofQ4%2B5v00wv86yKUH_di44S3iP7M078NWnqrPQ%40mail.gmail.com.
No comments:
Post a Comment