R
R
Romua1d2016-11-07 13:14:18
Django
Romua1d, 2016-11-07 13:14:18

Django delayed posting to a third-party resource, how to implement?

Is it possible to implement the function of delayed posting of django records. For example, we added an article to the site, it will be published on VK at a certain time. If articles 2 or 3 and so on. Then create a queue. How will it look like?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2016-11-07
@Romua1d

Create a management command that receives a selection of unposted posts that should be posted and posts them.
Once every 1/5/10 (as you wish) minutes, call this command with cron (or celery beat)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question