summaryrefslogtreecommitdiff
path: root/testapp/scripts
diff options
context:
space:
mode:
authorankitjavalkar2015-06-24 18:32:06 +0530
committerankitjavalkar2015-08-03 15:23:05 +0530
commit483bc9008d4f510ee8db4ee06e07a6c6bde063ab (patch)
treede4949c25a13caf1d66e9d463491bb0aa5be5074 /testapp/scripts
parent4df1996135a69a52ba11c30e71c50ce0951a94b1 (diff)
downloadonline_test-483bc9008d4f510ee8db4ee06e07a6c6bde063ab.tar.gz
online_test-483bc9008d4f510ee8db4ee06e07a6c6bde063ab.tar.bz2
online_test-483bc9008d4f510ee8db4ee06e07a6c6bde063ab.zip
- Move initial_fixtures to testapp/fixtures
- Add fixtures path to demo_settings - Modify installer to include fixtures while creating proj
Diffstat (limited to 'testapp/scripts')
-rw-r--r--testapp/scripts/vimarsh.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/testapp/scripts/vimarsh.py b/testapp/scripts/vimarsh.py
index 07966d8..8b3e8b7 100644
--- a/testapp/scripts/vimarsh.py
+++ b/testapp/scripts/vimarsh.py
@@ -79,6 +79,7 @@ def create_demo(project_name='vimarsh_demo', project_dir=CUR_DIR):
top_dir = project_dir
project_path = path.join(top_dir, project_name)
+ fixture_dir = path.join(PARENT_DIR, 'fixtures')
# Store project details
_set_project_details(project_name, top_dir)
@@ -86,8 +87,9 @@ def create_demo(project_name='vimarsh_demo', project_dir=CUR_DIR):
root_urlconf = "{0}.{1}".format(project_name, 'demo_urls')
settings_template_path = path.join(TEMPLATE_DIR, 'demo_settings.py')
settings_target_path = path.join(project_path, 'demo_settings.py')
- settings_context = Context({'project_name': project_name, # 'custom_apps': custom_apps,
- 'root_urlconf': root_urlconf})
+ settings_context = Context({'project_name': project_name,
+ 'root_urlconf': root_urlconf,
+ 'fixture_dir': fixture_dir})
urls_template_path = path.join(TEMPLATE_DIR, 'demo_urls.py')
urls_target_path = path.join(project_path, 'demo_urls.py')
command = ("python ../manage.py syncdb "