简体   繁体   English

如何在 django/python 中的 2 小时前向客户发送提醒消息

[英]How can i send reminder message to customer before 2 hours in django/python

I am developing a web app for online ticket buying.我正在开发一个用于在线购票的 web 应用程序。 I used telesign API to integrate sms system.我使用telesign API来集成短信系统。 Now i want a reminder system for my web app, it should send sms to customer before 2 hours of start time of movie.现在我想为我的 web 应用程序设置一个提醒系统,它应该在电影开始时间 2 小时之前向客户发送短信。

You could look at periodic tasks in celery.您可以查看 celery 中的周期性任务 You could run a task every 15 minutes (or whatever), and scan for imminent start times, and then send your SMS based on that.您可以每 15 分钟(或其他任何时间)运行一次任务,并扫描即将开始的时间,然后根据该时间发送您的 SMS。

If you are deploying to a Cloud platform such as AWS, then there are other mechanisms to achieve the same thing.如果您要部署到 AWS 等云平台,那么还有其他机制可以实现相同的目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Django Python中添加新卡之前,我如何检查Stripe客户是否已拥有特定卡 - how can i check whether a Stripe customer already has a specific card before adding a new one in django python Django 根据日期发送 email 提醒如何? - Django send email reminder based on date how to? 在Python中,如何在给定的日期设置提醒? - In Python, how can I set a reminder on a given day? 我可以在HttpResponseBadRequest中将消息发送到Django模板吗? - can i send a message to a django template in an HttpResponseBadRequest? 如何每隔几个小时检查一次文件夹,如果发现使用Python,该如何发送电子邮件? - How can I check a folder every couple hours and send an email if something is found in it, using Python? 我如何使用 Python 中的 Selenium 驱动程序在 Facebook 上发送消息 - How I can send a message on Facebook using Selenium Driver in Python 如何使用带有 python selenium 的电报机器人发送消息 - How I can send message using telegram bot with python selenium 如何使用 Python 向特定用户手机发送消息? - How can I send a message to specific users phone by using Python? 使用python quickfix软件包,如何发送TestRequest消息? - Using the python quickfix package, how can I send a TestRequest message? 如何使用 python discord 向机器人所在的每个服务器发送消息 - How can I send a message to every server the bot is in with python discord
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM