> No, I'm not. I didn't think I need to...
the only things that are automatically included are your settings
file, your site urls file, and your apps' models file, everything else
depends on you (or them) to include them. For example, if you don't
call admin.autodiscover() sometime soon (your site's urls file is
about the soonest it makes sense to do this, and where it's usually
done), your ModelAdmins won't get registered. Likewise, unless you
include the call to signal.register() (or in your case the @listener
decorator), then your listener never gets registered in the signal.
The signal itself is working because you included it from your models
file in order to .send() it
I don't know exactly why is it working from the shell, I'm guessing
you included something more when you were fiddling in it, that got it
included.
--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde
|_|0|_|
|_|_|0|
|0|0|0|
(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.