How to hook in/extend Django?

38 views
Skip to first unread message

Stan Rosenbaum

unread,
Sep 18, 2015, 11:00:34 AM9/18/15
to Django users

Hey All,

So my team and I are trying to build a simple Status update app for our group.

We want to be able to send SMS text messages to our Django app and update our database entries from the text messages.

We have a library that pulls the data from our SMS service [Twilio], but I am not sure where is the best place to create a function in a Django App Structure that will poll that external service for update periodically. 

Any Suggestions?

Stan

C. Kirby

unread,
Sep 18, 2015, 11:25:06 AM9/18/15
to Django users

jaddison

unread,
Sep 20, 2015, 5:01:43 PM9/20/15
to Django users
Write a custom management command[1] and use cron[2] to call it every few minutes, once a day, or whenever you like.

Cron is far easier to use than the man page makes it out to look, by the way.


Cheers,
James
Reply all
Reply to author
Forward
0 new messages