Answer: create a django app for such utility: you will be able to use app 
features decoupled from specific model

On Friday, January 22, 2016 at 4:09:47 PM UTC+1, Benj wrote:
>
> Since I follow the recommended way of creating signal, I create a 
> signals.py file in a project's app, an app.py config file, and initialize 
> that in __init__.
> @receiver(pre_delete, dispatch_uid='document_delete_signal') 
>
> But what if I don't want this to be tied to a specific app in the project, 
> but intercept any pre_delete for all models and apps ? Where should I put 
> and configure signals.py, app.py and which __iniy__ ?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1bc179ab-4c0b-46b9-8446-ef6fb75bd484%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to