I should write the code first, and then say something about it I guess... ;-)I'll get back when I did so.
benjamin
Radovan
--
View this message in context: http://www.nabble.com/Where-to-put-signals--tp19710995p20225683.html
Sent from the django-users mailing list archive at Nabble.com.
I sometimes just create a module named core in the project directory and
place stuf I need in various place there.
how about creating an app called global put the signals.py in there and
in the __init__.py do an import signals.
> @adi:
> What do you mean by 'whatever pleases you'?
>
naja, es ist egal wohin du die signals tust so lange es für dich passt
und es im Rahmen
der Django Vorgaben bleibt.
adi
thanks for your reply!
Am 29.10.2008 um 13:07 schrieb urukay:
> Benjamin, i did't have to use singnals so far, but when something is
> needed
> in various app (models), i create new app and put it there (e.g.
> signals.py).
> And you don't have to bother with cross imports exceptions, can change
> everything in one place for each model etc.
>
>
> Radovan
I started a new app (./manage.py startapp) named 'utilities'
and put signals.py in it like this:
-project
-__init__.py
-settings.py
-urls.py
-utilities
-__init__.py
-signals.py
Then I added 'project.utilities' to INSTALLED_APPS in settings.py.
This way it did not work yet, I had to do what Adi proposed in an
earlier reply:
I had to import signals.py in the app's __init__.py.
benjamin
Radov proposed the same, I just answered to his reply...
It works like you two guys said!
Danke!
benjamin