summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-11-09 17:26:46 +0530
committerGitHub2017-11-09 17:26:46 +0530
commitcfcb2ed39c724639fe17338e29e327d08ae641b2 (patch)
tree17bca625745b11d6152d9db1e9ebb49646d27d04 /yaksh/models.py
parente65b605e59c1384ad9607c99484107929248f220 (diff)
parent91de91014b24412f9ec5fe246235c38a00a778ec (diff)
downloadonline_test-cfcb2ed39c724639fe17338e29e327d08ae641b2.tar.gz
online_test-cfcb2ed39c724639fe17338e29e327d08ae641b2.tar.bz2
online_test-cfcb2ed39c724639fe17338e29e327d08ae641b2.zip
Merge pull request #379 from ankitjavalkar/better-installer-single-mount
Installation and Quickstart script using PyInvoke
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index cb9b481..d698232 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -82,6 +82,8 @@ test_status = (
('completed', 'Completed'),
)
+FIXTURES_DIR_PATH = os.path.join(settings.BASE_DIR, 'yaksh', 'fixtures')
+
def get_assignment_dir(instance, filename):
upload_dir = instance.question_paper.quiz.description.replace(" ", "_")
@@ -544,7 +546,7 @@ class Question(models.Model):
def create_demo_questions(self, user):
zip_file_path = os.path.join(
- settings.FIXTURE_DIRS, 'demo_questions.zip'
+ FIXTURES_DIR_PATH, 'demo_questions.zip'
)
files, extract_path = extract_files(zip_file_path)
self.read_yaml(extract_path, user, files)