0

I have an installation script which would ask me some question.

or can I solve this problem without using pexpect?

In my django project

python manage.py syncdb

....
....
....
Would you like to create a default user (yes/no)?
What is the username?
What is the password?
....
....

I want to automate this process by typing yes , root and 12345.

Can I do it automatically?

Thanks

Community
  • 1
  • 1
TheOneTeam
  • 25,806
  • 45
  • 116
  • 158

1 Answers1

1

Yes... but you should do it by passing the option to bypass superuser creation and supplying a fixture instead.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358