noinput for syncdb to not stop bootstrapper

This commit is contained in:
Chris Mitchell 2015-06-01 12:41:18 -04:00
parent eb8a5191cc
commit a7bf22e68d
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def main():
subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'makemigrations'], env=env) subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'makemigrations'], env=env)
subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'migrate'], env=env) subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'migrate'], env=env)
else: else:
subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'syncdb'], env=env) subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'syncdb', '--noinput'], env=env)
subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'collectstatic', '--noinput'], env=env) subprocess.call(['python', os.path.join(project_root, 'manage.py'), 'collectstatic', '--noinput'], env=env)
sys.stdout.write("Please enter the project directory {0}, and run python manage.py createsuperuser and" sys.stdout.write("Please enter the project directory {0}, and run python manage.py createsuperuser and"
" python manage.py runserver to start. The admin can be found at localhost:8000/admin. You may also want to set your " " python manage.py runserver to start. The admin can be found at localhost:8000/admin. You may also want to set your "