Hi,
You can use django signals with post_save decorators with your model as receiver.
so every time a user created, your model will send a signal to your desired function.
Elton Laice <eltonlaice.maputo@gmail.com> در تاریخ جمعه ۲۳ نوامبر ۲۰۱۸ ساعت ۲۰:۴۹ نوشت:
--hi guys.How to create event or trigger when user are created.thku
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGoRa9c9UqocvDSoaFi0K9kCnTDoS8ZMRKwDmFHvvQhLcga7uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJjGCEPv4gkBAWhvgfEPWaPphR_sy1gzU79g%2Bg59ukTyG_RWsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment