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

标签 python django python-3.x django-admin

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

最佳答案

使用信号。 django signals

当请求发生时 - 从服务器调用信号并保存您想要的新数据。

另一个简单又很好的例子: simpleisbetterthancomplex

也许创建历史模块来存储帮助请求事件。

关于python - Django : How to send notification to admin on a specific user activity?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56207107/

相关文章:

python - 在 Python 3 中使用在 exec'ed 字符串中定义的函数

python - 我们如何检查函数是否在 Python 中返回多个值?

Django 管理员 : Setting list_display conditionally

python - 如何对字典的函数输出列表进行单元测试?

python - 如何使用python ssl模块获取证书的签名 key 长度

python - PyG对象 : How could i get selected item in treeStore

python - 以天为单位重新采样 DataFrame 但保留原始日期时间索引格式

django - 编程错误 : column cannot be cast automatically to type double precision

python - Pyldap(使用 Django Auth LDAP)安装在 python3 virtualenv 中

python - 权限错误 : [WinError 32] The process cannot access the file because it is being used by another process