Hi folks,
Is there any way in Django to have a global hook (not Python hook, an
architecture hook rather :-) on a database table?

I want to get notifications in my django layer of changes in DB i.e.
whenever theres an update/delete. Is this feasible or am I heading the
wrong way?

The doc[1] says -
"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?

pre-save,post-save amongst others..in Django is I think no good here
because the data does not get changed via save( )/create( )/... within
the our code (database tables get updated through other means)

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?)
Maybe I am trying visualizing a bit beyond what Django is capable of
hmm.. Any thoughts / suggestions / recommendation? Thanks a lot.

[1] http://docs.djangoproject.com/en/dev/topics/signals/
-- 
Regards,
Ishwor Gurung

--

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