From d56bd4e6fc72fc03438280db184e2ab2e9137c61 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 8 Oct 2015 12:12:24 +0530 Subject: - Modify initial fixtures - Add load data command with settings.py path - Modify Manifest --- yaksh/scripts/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'yaksh/scripts/cli.py') diff --git a/yaksh/scripts/cli.py b/yaksh/scripts/cli.py index ecccada..1787fda 100644 --- a/yaksh/scripts/cli.py +++ b/yaksh/scripts/cli.py @@ -82,7 +82,7 @@ def create_demo(project_name='yaksh_demo', project_dir=CUR_DIR): project_path = path.join(top_dir, project_name) fixture_dir = path.join(PARENT_DIR, 'fixtures') - fixture_path = path.join(fixture_dir, 'initial_fixtures.json') + fixture_path = path.join(fixture_dir, 'demo_fixtures.json') # Store project details _set_project_details(project_name, top_dir) @@ -98,7 +98,8 @@ def create_demo(project_name='yaksh_demo', project_dir=CUR_DIR): command = ("python ../manage.py syncdb " "--noinput --settings={0}.demo_settings").format(project_name) - loaddata_command = "python ../manage.py loaddata {0} ".format(fixture_path) + loaddata_command = ("python ../manage.py loaddata " + "--settings={0}.demo_settings {1}").format(project_name, fixture_path) # Create demo_settings file _render_demo_files(settings_template_path, settings_target_path, settings_context) -- cgit