diff options
author | ankitjavalkar | 2015-10-08 12:12:24 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-10-08 12:12:24 +0530 |
commit | d56bd4e6fc72fc03438280db184e2ab2e9137c61 (patch) | |
tree | 81b530fa437245bea358347e1bb5cb50a70271bb /yaksh/scripts/cli.py | |
parent | 81393bfd4581b3f2217a979aaffec999c89d6755 (diff) | |
download | online_test-d56bd4e6fc72fc03438280db184e2ab2e9137c61.tar.gz online_test-d56bd4e6fc72fc03438280db184e2ab2e9137c61.tar.bz2 online_test-d56bd4e6fc72fc03438280db184e2ab2e9137c61.zip |
- Modify initial fixtures
- Add load data command with settings.py path
- Modify Manifest
Diffstat (limited to 'yaksh/scripts/cli.py')
-rw-r--r-- | yaksh/scripts/cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |