On 09-11-16 9:01 PM, Ishwor Gurung wrote:
> "Django includes a “signal dispatcher” which helps allow decoupled
> applications get notified when actions occur elsewhere in the
> framework." The word "framework" is I think the key here. Right?

Correct, signals won't help spot changes in the database that do not 
pass through Django.

> A way which I think this can work is having field within the db that
> gets polled every say 5 minutes OR using database triggers as a
> callback (this one is the one I want to implement but is it even
> possible?)

I've done something similar to this in the past so I can integrate Plone 
(which pushes straight to the db) with Django. I have a database trigger 
that writes to an audit log table. That table has a matching Django 
model. So then I have a cron job that runs every couple of minutes, 
looking for any changes on the table and then does some work (in this 
case updating navigation and search).

This lets me stay in the Django ORM as much as possible, with the 
addition of just one trigger.
-- 
   Andy McKay, @clearwind
   Training: http://clearwind.ca/training/

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to