简体   繁体   中英

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

我正在建立一个网站,该网站需要在发生帮助请求时向管理员发送通知,它不一定是通知,它可能是在管理面板中通过电子邮件发送的,谢谢^^

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM