Tuesday, October 25, 2022

Re: Django call_command from Admin

Thank you Mdehs, 

Much appreciated for the advice,
I try to avoid signals as they are thread huggers but maybe i will 
or try to circumvent them somehow

Kind regards
Aziz

On Friday, October 21, 2022 at 7:32:02 PM UTC+1 mdehs...@gmail.com wrote:
Please refer the signal concept in django you will get how to implement it

On Thu, 20 Oct, 2022, 9:36 pm Aziz Mek, <azi...@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, it
should 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 save

I am just after the trigger really when the save takes place

Many thanks in advance

Kind regards
Aziz


--
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...@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/d972e95f-090f-4c24-acbc-7f75273dd439n%40googlegroups.com.

No comments:

Post a Comment