On Tue, 2009-05-05 at 10:21 -0700, bconnors wrote: > I'm looking at How to run manage.py syncdb without being prompted to > create a superuser > > at > http://code.djangoproject.com/wiki/CookBookScriptsNoSuperUserSyncdb > > >>> from django.core import management > >>> from django.dispatch import dispatcher > >>> from django.contrib.auth.management import create_superuser > >>> from django.contrib.auth import models as auth_app > >>> from django.db.models import signals > >>> dispatcher.disconnect(create_superuser, sender=auth_app, > >>> signal=signals.post > syncdb) > Traceback (most recent call last): > File "<console>", line 1, in <module> > AttributeError: 'module' object has no attribute 'disconnect' > > > To run manage.py syncdb without being prompted to create a superuser > what do I do?
Have a look at the "--noinput" parameter that can be passed to the syncdb command. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

