i wondering if there is any way to answer automatically a python script, this is the script (i run it with the next command "python manage.py syncdb")
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pydash.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
and when I execute it, this is the output:
Would you like to create one now? (yes/no):
Username (leave blank to use 'root'):
Email address:
Password:
Password (again):
I know bash scripting but I am not good with python, so I am looking for an answer to this question automatically when I run the python script.
For information, this script comes from https://github.com/k3oni/pydash