From bc3db0d9777e458b5c2eac12f4e1d0e1472ff8c7 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Wed, 23 Jul 2014 07:35:34 +0200 Subject: [PATCH] Fix asking for creating user even when --no-input flag is used --- djangocms_installer/django/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_installer/django/__init__.py b/djangocms_installer/django/__init__.py index 12fbff5..59f9b5b 100644 --- a/djangocms_installer/django/__init__.py +++ b/djangocms_installer/django/__init__.py @@ -272,7 +272,7 @@ def setup_database(config_data): subprocess.check_call([sys.executable, "-W", "ignore", "manage.py", "syncdb", "--noinput"]) print("south not installed, migrations skipped") - if not config_data.no_user: + if not config_data.no_user and not config_data.noinput: print("\n\nCreating admin user") subprocess.check_call([sys.executable, "-W", "ignore", "manage.py", "createsuperuser"])