On Dec 13, 2007 10:36 AM, Tane Piper <[EMAIL PROTECTED]> wrote:
> dispatcher.connect(init_issues_database, signal=signals.post_syncdb)

This will set up the code to run every single time an application is
installed. Not just the application it resides in, but *every*
application. You want to look up the "sender" argument to
dispatcher.connect() to see how to set it up to only run once, when
its own application is being installed (django.contrib.auth and
django.contrib.sites both provide examples of this, by creating the
superuser account and the default Site object).


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to