summaryrefslogtreecommitdiff
path: root/testapp/exam/management
diff options
context:
space:
mode:
authorPrabhu Ramachandran2015-03-01 10:31:18 +0530
committerPrabhu Ramachandran2015-03-01 10:31:18 +0530
commit997a7907a13b394e5ca69fadf17f5bb4d5445536 (patch)
tree4950c79bca8c99f8f83e20d314d3845aeff87423 /testapp/exam/management
parent265ad4d17f481e30a84350e8eb96e72c8cedef6b (diff)
parent2c6aa7e1ec058453ce8c559fce26b3ee05d99cae (diff)
downloadonline_test-997a7907a13b394e5ca69fadf17f5bb4d5445536.tar.gz
online_test-997a7907a13b394e5ca69fadf17f5bb4d5445536.tar.bz2
online_test-997a7907a13b394e5ca69fadf17f5bb4d5445536.zip
Merge pull request #36 from prathamesh920/app_package
App package
Diffstat (limited to 'testapp/exam/management')
-rw-r--r--testapp/exam/management/commands/dump_user_data.py4
-rw-r--r--testapp/exam/management/commands/load_exam.py2
-rw-r--r--testapp/exam/management/commands/load_questions_xml.py2
-rw-r--r--testapp/exam/management/commands/results2csv.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/testapp/exam/management/commands/dump_user_data.py b/testapp/exam/management/commands/dump_user_data.py
index ec016bb..c5537e5 100644
--- a/testapp/exam/management/commands/dump_user_data.py
+++ b/testapp/exam/management/commands/dump_user_data.py
@@ -5,8 +5,8 @@ from django.core.management.base import BaseCommand
from django.template import Template, Context
# Local imports.
-from exam.views import get_user_data
-from exam.models import User
+from testapp.exam.views import get_user_data
+from testapp.exam.models import User
data_template = Template('''\
===============================================================================
diff --git a/testapp/exam/management/commands/load_exam.py b/testapp/exam/management/commands/load_exam.py
index e3f72da..c4a34a3 100644
--- a/testapp/exam/management/commands/load_exam.py
+++ b/testapp/exam/management/commands/load_exam.py
@@ -5,7 +5,7 @@ from os.path import basename
from django.core.management.base import BaseCommand
# Local imports.
-from exam.models import Question, Quiz
+from testapp.exam.models import Question, Quiz
def clear_exam():
"""Deactivate all questions from the database."""
diff --git a/testapp/exam/management/commands/load_questions_xml.py b/testapp/exam/management/commands/load_questions_xml.py
index 8bc2701..3e13ae1 100644
--- a/testapp/exam/management/commands/load_questions_xml.py
+++ b/testapp/exam/management/commands/load_questions_xml.py
@@ -8,7 +8,7 @@ import re
from django.core.management.base import BaseCommand
# Local imports.
-from exam.models import Question
+from testapp.exam.models import Question
def decode_html(html_str):
"""Un-escape or decode HTML strings to more usable Python strings.
diff --git a/testapp/exam/management/commands/results2csv.py b/testapp/exam/management/commands/results2csv.py
index 2993745..1cdf8e3 100644
--- a/testapp/exam/management/commands/results2csv.py
+++ b/testapp/exam/management/commands/results2csv.py
@@ -7,7 +7,7 @@ from django.core.management.base import BaseCommand
from django.template import Template, Context
# Local imports.
-from exam.models import Quiz, QuestionPaper
+from testapp.exam.models import Quiz, QuestionPaper
result_template = Template('''\
"name","username","rollno","email","answered","total","attempts","position",\