Maybe I'm just making some sort of stupid shell command mistake, but I can't seem to automate the input to manage.py flush (I need to do a lot of database reloading as part of my current testing sequence). It appears to fail when processing the email address.
Any suggestions? I'm using the following command: python manage.py flush < flush.txt flush.txt looks like so: yes yes myusername m...@mydomain.com pypass mypass I'm getting the following output plus traceback: You have requested a flush of the database. This will IRREVERSIBLY DESTROY all data currently in the 'jotling' database, and return each table to the state it was in after syncdb. Are you sure you want to do this? Type 'yes' to continue, or 'no' to cancel: You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): Username (Leave blank to use 'myusername'): E-mail address: Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/__init__.py", line 362, in execute_manager utility.execute() File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/base.py", line 195, in run_from_argv self.execute(*args, **options.__dict__) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/base.py", line 222, in execute output = self.handle(*args, **options) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/base.py", line 351, in handle return self.handle_noargs(**options) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/commands/flush.py", line 61, in handle_noargs emit_post_sync_signal(models.get_models(), verbosity, interactive) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/sql.py", line 205, in emit_post_sync_signal interactive=interactive) File "/Users/myusername/Desktop/mypy/django-1.1/django/dispatch/ dispatcher.py", line 166, in send response = receiver(signal=self, sender=sender, **named) File "/Users/myusername/Desktop/mypy/django-1.1/django/contrib/auth/ management/__init__.py", line 44, in create_superuser call_command("createsuperuser", interactive=True) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/__init__.py", line 166, in call_command return klass.execute(*args, **defaults) File "/Users/myusername/Desktop/mypy/django-1.1/django/core/ management/base.py", line 222, in execute output = self.handle(*args, **options) File "/Users/myusername/Desktop/mypy/django-1.1/django/contrib/auth/ management/commands/createsuperuser.py", line 118, in handle password = getpass.getpass() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/getpass.py", line 29, in unix_getpass old = termios.tcgetattr(fd) # a copy to save termios.error: (25, 'Inappropriate ioctl for device') --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---