Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django : How to send notification to admin on a specific user activity?

I'm building a website that needs sending a notification to the admin when a request for help happens, It doesn't need to be literally a notification, it may b email in the admin panel or so, Thanks ^^

like image 429
Motaz Abo Elnasr Avatar asked Sep 16 '25 02:09

Motaz Abo Elnasr


1 Answers

Use signals. django signals

When the request happens - invoke a signal from server and save new data that you wish.

Another easy and great example: simpleisbetterthancomplex

Maybe create history module to store the help request event.

like image 193
Ohad the Lad Avatar answered Sep 17 '25 18:09

Ohad the Lad