summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
Diffstat (limited to 'testapp')
-rw-r--r--testapp/LICENSE3
-rw-r--r--testapp/MANIFEST.in7
-rw-r--r--testapp/README.rst51
-rw-r--r--testapp/dist/django-exam-0.1.tar.gzbin0 -> 79583 bytes
-rwxr-xr-xtestapp/exam/code_server.py (renamed from testapp/code_server.py)0
-rw-r--r--testapp/exam/models.py2
-rw-r--r--testapp/exam/output/README.txt (renamed from testapp/output/README.txt)0
-rw-r--r--testapp/exam/settings.py20
-rw-r--r--testapp/exam/static/exam/css/autotaggit.css (renamed from testapp/static/exam/css/autotaggit.css)0
-rw-r--r--testapp/exam/static/exam/css/base.css (renamed from testapp/static/exam/css/base.css)0
-rw-r--r--testapp/exam/static/exam/css/gradeuser.css (renamed from testapp/static/exam/css/gradeuser.css)0
-rw-r--r--testapp/exam/static/exam/css/login.css (renamed from testapp/static/exam/css/login.css)0
-rw-r--r--testapp/exam/static/exam/css/monitor.css (renamed from testapp/static/exam/css/monitor.css)0
-rw-r--r--testapp/exam/static/exam/css/question.css (renamed from testapp/static/exam/css/question.css)0
-rw-r--r--testapp/exam/static/exam/css/question_paper_creation.css (renamed from testapp/static/exam/css/question_paper_creation.css)0
-rw-r--r--testapp/exam/static/exam/css/question_quiz.css (renamed from testapp/static/exam/css/question_quiz.css)0
-rw-r--r--testapp/exam/static/exam/css/showusers.css (renamed from testapp/static/exam/css/showusers.css)0
-rw-r--r--testapp/exam/static/exam/js/add_question.js (renamed from testapp/static/exam/js/add_question.js)0
-rw-r--r--testapp/exam/static/exam/js/add_questionpaper.js (renamed from testapp/static/exam/js/add_questionpaper.js)0
-rw-r--r--testapp/exam/static/exam/js/add_quiz.js (renamed from testapp/static/exam/js/add_quiz.js)0
-rw-r--r--testapp/exam/static/exam/js/bootstrap-modal.js (renamed from testapp/static/exam/js/bootstrap-modal.js)0
-rw-r--r--testapp/exam/static/exam/js/bootstrap-tabs.js (renamed from testapp/static/exam/js/bootstrap-tabs.js)0
-rw-r--r--testapp/exam/static/exam/js/edit_question.js (renamed from testapp/static/exam/js/edit_question.js)0
-rw-r--r--testapp/exam/static/exam/js/edit_quiz.js (renamed from testapp/static/exam/js/edit_quiz.js)0
-rw-r--r--testapp/exam/static/exam/js/min.js (renamed from testapp/static/exam/js/min.js)0
-rw-r--r--testapp/exam/static/exam/js/question.js (renamed from testapp/static/exam/js/question.js)0
-rw-r--r--testapp/exam/static/exam/js/question_paper_creation.js (renamed from testapp/static/exam/js/question_paper_creation.js)0
-rw-r--r--testapp/exam/static/exam/js/show_question.js (renamed from testapp/static/exam/js/show_question.js)0
-rw-r--r--testapp/exam/static/exam/js/show_quiz.js (renamed from testapp/static/exam/js/show_quiz.js)0
-rw-r--r--testapp/exam/templates/404.html (renamed from testapp/templates/404.html)0
-rw-r--r--testapp/exam/templates/500.html (renamed from testapp/templates/500.html)0
-rw-r--r--testapp/exam/templates/base.html (renamed from testapp/templates/base.html)0
-rw-r--r--testapp/exam/templates/exam/add_question.html (renamed from testapp/templates/exam/add_question.html)0
-rw-r--r--testapp/exam/templates/exam/add_questionpaper.html (renamed from testapp/templates/exam/add_questionpaper.html)0
-rw-r--r--testapp/exam/templates/exam/add_quiz.html (renamed from testapp/templates/exam/add_quiz.html)0
-rw-r--r--testapp/exam/templates/exam/ajax_marks.html (renamed from testapp/templates/exam/ajax_marks.html)0
-rw-r--r--testapp/exam/templates/exam/ajax_questions.html (renamed from testapp/templates/exam/ajax_questions.html)0
-rw-r--r--testapp/exam/templates/exam/automatic_questionpaper.html (renamed from testapp/templates/exam/automatic_questionpaper.html)0
-rw-r--r--testapp/exam/templates/exam/complete.html (renamed from testapp/templates/exam/complete.html)0
-rw-r--r--testapp/exam/templates/exam/design_questionpaper.html (renamed from testapp/templates/exam/design_questionpaper.html)2
-rw-r--r--testapp/exam/templates/exam/edit_question.html (renamed from testapp/templates/exam/edit_question.html)0
-rw-r--r--testapp/exam/templates/exam/edit_quiz.html (renamed from testapp/templates/exam/edit_quiz.html)0
-rw-r--r--testapp/exam/templates/exam/editquestionpaper.html (renamed from testapp/templates/exam/editquestionpaper.html)0
-rw-r--r--testapp/exam/templates/exam/grade_user.html (renamed from testapp/templates/exam/grade_user.html)0
-rw-r--r--testapp/exam/templates/exam/intro.html (renamed from testapp/templates/exam/intro.html)0
-rw-r--r--testapp/exam/templates/exam/login.html (renamed from testapp/templates/exam/login.html)0
-rw-r--r--testapp/exam/templates/exam/manual_questionpaper.html (renamed from testapp/templates/exam/manual_questionpaper.html)0
-rw-r--r--testapp/exam/templates/exam/monitor.html (renamed from testapp/templates/exam/monitor.html)0
-rw-r--r--testapp/exam/templates/exam/question.html (renamed from testapp/templates/exam/question.html)0
-rw-r--r--testapp/exam/templates/exam/quit.html (renamed from testapp/templates/exam/quit.html)0
-rw-r--r--testapp/exam/templates/exam/quizlist.html (renamed from testapp/templates/exam/quizlist.html)0
-rw-r--r--testapp/exam/templates/exam/quizzes_user.html (renamed from testapp/templates/exam/quizzes_user.html)0
-rw-r--r--testapp/exam/templates/exam/register.html (renamed from testapp/templates/exam/register.html)0
-rw-r--r--testapp/exam/templates/exam/results_user.html (renamed from testapp/templates/exam/results_user.html)0
-rw-r--r--testapp/exam/templates/exam/show_quiz.html (renamed from testapp/templates/exam/show_quiz.html)0
-rw-r--r--testapp/exam/templates/exam/showquestionpapers.html (renamed from testapp/templates/exam/showquestionpapers.html)0
-rw-r--r--testapp/exam/templates/exam/showquestions.html (renamed from testapp/templates/exam/showquestions.html)0
-rw-r--r--testapp/exam/templates/exam/showusers.html (renamed from testapp/templates/exam/showusers.html)0
-rw-r--r--testapp/exam/templates/exam/user_data.html (renamed from testapp/templates/exam/user_data.html)0
-rw-r--r--testapp/exam/templates/manage.html (renamed from testapp/templates/manage.html)0
-rw-r--r--testapp/exam/templates/user.html (renamed from testapp/templates/user.html)0
-rw-r--r--testapp/exam/urls.py2
-rw-r--r--testapp/exam/views.py2
-rw-r--r--testapp/settings.py14
-rw-r--r--testapp/setup.py39
-rw-r--r--testapp/urls.py2
66 files changed, 125 insertions, 19 deletions
diff --git a/testapp/LICENSE b/testapp/LICENSE
new file mode 100644
index 0000000..8b49593
--- /dev/null
+++ b/testapp/LICENSE
@@ -0,0 +1,3 @@
+This is distributed under the terms of the BSD license.
+
+Copyright (c) 2011 Prabhu Ramachandran and FOSSEE (fossee.in)
diff --git a/testapp/MANIFEST.in b/testapp/MANIFEST.in
new file mode 100644
index 0000000..2c50f50
--- /dev/null
+++ b/testapp/MANIFEST.in
@@ -0,0 +1,7 @@
+include LICENSE
+include README.rst
+recursive-include exam/static *
+recursive-include exam/templates *
+recursive-include exam/management *
+recursive-include exam/output *
+recursive-include exam/fixtures *
diff --git a/testapp/README.rst b/testapp/README.rst
new file mode 100644
index 0000000..66535ff
--- /dev/null
+++ b/testapp/README.rst
@@ -0,0 +1,51 @@
+===============
+Online Exam
+===============
+
+Online test application lets user(student) take an online programming test.
+A special user called moderator can add questions, create question paper,
+conduct online test and monitor the test.
+
+
+Quick start
+------------
+
+1. Add "exam", "taggit" and "taggit_autocomplete_modified" apps
+ to your INSTALLED_APPS setting as follows:
+
+ INSTALLED_APPS =(
+ 'exam',
+ 'taggit',
+ 'taggit_autocomplete_modified',
+ )
+
+2. In project settings, add AUTH_PROFILE_MODULE = 'exam.Profile'
+ You can change the exam.Profile to your desired app user profile.
+
+3. Include the "exam" and taggit_autocomplete_modified URL configuration
+ in your project urls.py as follows:
+
+ url(r'^exam/', include('exam.urls')),
+ url(r'^taggit_autocomplete_modified/', include\
+ ('taggit_autocomplete_modified.urls'))
+
+4. Since taggit_autocomplete_modified version for django=>1.5 is not available
+ you have to do one change manually. In taggit_autocomplete_modified app url,
+ remove "default" from the import statement as follows:
+
+ Change: from django.conf.urls.defaults import *
+ to : from django.conf.urls import *
+
+ Note: location of the above file will probably be as
+ ../lib/python2.7/site-packages/taggit_autocomplete_modified/urls.py
+
+5. Run 'python manage.py syncdb' to create "exam" models.
+
+6. Start the development server and visit http://localhost:8000/exam/
+
+7. In exam app run code sever as superuser as follows:
+
+ sudo python code_server.py
+
+ Note: location of the above file will probably be as
+ ../lib/python2.7/site-packages/exam/code_server.py
diff --git a/testapp/dist/django-exam-0.1.tar.gz b/testapp/dist/django-exam-0.1.tar.gz
new file mode 100644
index 0000000..114a61e
--- /dev/null
+++ b/testapp/dist/django-exam-0.1.tar.gz
Binary files differ
diff --git a/testapp/code_server.py b/testapp/exam/code_server.py
index 792197d..792197d 100755
--- a/testapp/code_server.py
+++ b/testapp/exam/code_server.py
diff --git a/testapp/exam/models.py b/testapp/exam/models.py
index 4d82783..196ee73 100644
--- a/testapp/exam/models.py
+++ b/testapp/exam/models.py
@@ -304,7 +304,7 @@ class AnswerPaper(models.Model):
def time_left(self):
"""Return the time remaining for the user in seconds."""
- dt = datetime.datetime.now() - self.start_time
+ dt = datetime.datetime.now() - self.start_time.replace(tzinfo=None)
try:
secs = dt.total_seconds()
except AttributeError:
diff --git a/testapp/output/README.txt b/testapp/exam/output/README.txt
index 3163ed4..3163ed4 100644
--- a/testapp/output/README.txt
+++ b/testapp/exam/output/README.txt
diff --git a/testapp/exam/settings.py b/testapp/exam/settings.py
new file mode 100644
index 0000000..682516f
--- /dev/null
+++ b/testapp/exam/settings.py
@@ -0,0 +1,20 @@
+"""
+settings for exam app.
+"""
+# The ports the code server should run on. This will run one separate
+# server for each port listed in the following list.
+SERVER_PORTS = [8001] # range(8001, 8026)
+
+# The server pool port. This is the server which returns available server
+# ports so as to minimize load. This is some random number where no other
+# service is running. It should be > 1024 and less < 65535 though.
+SERVER_POOL_PORT = 53579
+
+# Timeout for the code to run in seconds. This is an integer!
+SERVER_TIMEOUT = 2
+
+# The root of the URL, for example you might be in the situation where you
+# are not hosted as host.org/exam/ but as host.org/foo/exam/ for whatever
+# reason set this to the root you have to serve at. In the above example
+# host.org/foo/exam set URL_ROOT='/foo'
+URL_ROOT = ''
diff --git a/testapp/static/exam/css/autotaggit.css b/testapp/exam/static/exam/css/autotaggit.css
index ed856ce..ed856ce 100644
--- a/testapp/static/exam/css/autotaggit.css
+++ b/testapp/exam/static/exam/css/autotaggit.css
diff --git a/testapp/static/exam/css/base.css b/testapp/exam/static/exam/css/base.css
index 051ba22..051ba22 100644
--- a/testapp/static/exam/css/base.css
+++ b/testapp/exam/static/exam/css/base.css
diff --git a/testapp/static/exam/css/gradeuser.css b/testapp/exam/static/exam/css/gradeuser.css
index 07b1079..07b1079 100644
--- a/testapp/static/exam/css/gradeuser.css
+++ b/testapp/exam/static/exam/css/gradeuser.css
diff --git a/testapp/static/exam/css/login.css b/testapp/exam/static/exam/css/login.css
index a10cbaa..a10cbaa 100644
--- a/testapp/static/exam/css/login.css
+++ b/testapp/exam/static/exam/css/login.css
diff --git a/testapp/static/exam/css/monitor.css b/testapp/exam/static/exam/css/monitor.css
index b16c8b3..b16c8b3 100644
--- a/testapp/static/exam/css/monitor.css
+++ b/testapp/exam/static/exam/css/monitor.css
diff --git a/testapp/static/exam/css/question.css b/testapp/exam/static/exam/css/question.css
index 4bf5913..4bf5913 100644
--- a/testapp/static/exam/css/question.css
+++ b/testapp/exam/static/exam/css/question.css
diff --git a/testapp/static/exam/css/question_paper_creation.css b/testapp/exam/static/exam/css/question_paper_creation.css
index c915320..c915320 100644
--- a/testapp/static/exam/css/question_paper_creation.css
+++ b/testapp/exam/static/exam/css/question_paper_creation.css
diff --git a/testapp/static/exam/css/question_quiz.css b/testapp/exam/static/exam/css/question_quiz.css
index b702bd4..b702bd4 100644
--- a/testapp/static/exam/css/question_quiz.css
+++ b/testapp/exam/static/exam/css/question_quiz.css
diff --git a/testapp/static/exam/css/showusers.css b/testapp/exam/static/exam/css/showusers.css
index 66a3746..66a3746 100644
--- a/testapp/static/exam/css/showusers.css
+++ b/testapp/exam/static/exam/css/showusers.css
diff --git a/testapp/static/exam/js/add_question.js b/testapp/exam/static/exam/js/add_question.js
index 267cdb2..267cdb2 100644
--- a/testapp/static/exam/js/add_question.js
+++ b/testapp/exam/static/exam/js/add_question.js
diff --git a/testapp/static/exam/js/add_questionpaper.js b/testapp/exam/static/exam/js/add_questionpaper.js
index 6185dd5..6185dd5 100644
--- a/testapp/static/exam/js/add_questionpaper.js
+++ b/testapp/exam/static/exam/js/add_questionpaper.js
diff --git a/testapp/static/exam/js/add_quiz.js b/testapp/exam/static/exam/js/add_quiz.js
index d5688a8..d5688a8 100644
--- a/testapp/static/exam/js/add_quiz.js
+++ b/testapp/exam/static/exam/js/add_quiz.js
diff --git a/testapp/static/exam/js/bootstrap-modal.js b/testapp/exam/static/exam/js/bootstrap-modal.js
index b328217..b328217 100644
--- a/testapp/static/exam/js/bootstrap-modal.js
+++ b/testapp/exam/static/exam/js/bootstrap-modal.js
diff --git a/testapp/static/exam/js/bootstrap-tabs.js b/testapp/exam/static/exam/js/bootstrap-tabs.js
index a3c7ee1..a3c7ee1 100644
--- a/testapp/static/exam/js/bootstrap-tabs.js
+++ b/testapp/exam/static/exam/js/bootstrap-tabs.js
diff --git a/testapp/static/exam/js/edit_question.js b/testapp/exam/static/exam/js/edit_question.js
index 7a0f56d..7a0f56d 100644
--- a/testapp/static/exam/js/edit_question.js
+++ b/testapp/exam/static/exam/js/edit_question.js
diff --git a/testapp/static/exam/js/edit_quiz.js b/testapp/exam/static/exam/js/edit_quiz.js
index 610a438..610a438 100644
--- a/testapp/static/exam/js/edit_quiz.js
+++ b/testapp/exam/static/exam/js/edit_quiz.js
diff --git a/testapp/static/exam/js/min.js b/testapp/exam/static/exam/js/min.js
index b1ae21d..b1ae21d 100644
--- a/testapp/static/exam/js/min.js
+++ b/testapp/exam/static/exam/js/min.js
diff --git a/testapp/static/exam/js/question.js b/testapp/exam/static/exam/js/question.js
index 75baf76..75baf76 100644
--- a/testapp/static/exam/js/question.js
+++ b/testapp/exam/static/exam/js/question.js
diff --git a/testapp/static/exam/js/question_paper_creation.js b/testapp/exam/static/exam/js/question_paper_creation.js
index a144540..a144540 100644
--- a/testapp/static/exam/js/question_paper_creation.js
+++ b/testapp/exam/static/exam/js/question_paper_creation.js
diff --git a/testapp/static/exam/js/show_question.js b/testapp/exam/static/exam/js/show_question.js
index e3ed1cc..e3ed1cc 100644
--- a/testapp/static/exam/js/show_question.js
+++ b/testapp/exam/static/exam/js/show_question.js
diff --git a/testapp/static/exam/js/show_quiz.js b/testapp/exam/static/exam/js/show_quiz.js
index c58feaa..c58feaa 100644
--- a/testapp/static/exam/js/show_quiz.js
+++ b/testapp/exam/static/exam/js/show_quiz.js
diff --git a/testapp/templates/404.html b/testapp/exam/templates/404.html
index 7d33dd3..7d33dd3 100644
--- a/testapp/templates/404.html
+++ b/testapp/exam/templates/404.html
diff --git a/testapp/templates/500.html b/testapp/exam/templates/500.html
index d02721f..d02721f 100644
--- a/testapp/templates/500.html
+++ b/testapp/exam/templates/500.html
diff --git a/testapp/templates/base.html b/testapp/exam/templates/base.html
index 3dfbe10..3dfbe10 100644
--- a/testapp/templates/base.html
+++ b/testapp/exam/templates/base.html
diff --git a/testapp/templates/exam/add_question.html b/testapp/exam/templates/exam/add_question.html
index b0b22b1..b0b22b1 100644
--- a/testapp/templates/exam/add_question.html
+++ b/testapp/exam/templates/exam/add_question.html
diff --git a/testapp/templates/exam/add_questionpaper.html b/testapp/exam/templates/exam/add_questionpaper.html
index 4cce8a9..4cce8a9 100644
--- a/testapp/templates/exam/add_questionpaper.html
+++ b/testapp/exam/templates/exam/add_questionpaper.html
diff --git a/testapp/templates/exam/add_quiz.html b/testapp/exam/templates/exam/add_quiz.html
index c2533de..c2533de 100644
--- a/testapp/templates/exam/add_quiz.html
+++ b/testapp/exam/templates/exam/add_quiz.html
diff --git a/testapp/templates/exam/ajax_marks.html b/testapp/exam/templates/exam/ajax_marks.html
index 716bb88..716bb88 100644
--- a/testapp/templates/exam/ajax_marks.html
+++ b/testapp/exam/templates/exam/ajax_marks.html
diff --git a/testapp/templates/exam/ajax_questions.html b/testapp/exam/templates/exam/ajax_questions.html
index e343f9b..e343f9b 100644
--- a/testapp/templates/exam/ajax_questions.html
+++ b/testapp/exam/templates/exam/ajax_questions.html
diff --git a/testapp/templates/exam/automatic_questionpaper.html b/testapp/exam/templates/exam/automatic_questionpaper.html
index fcd3db5..fcd3db5 100644
--- a/testapp/templates/exam/automatic_questionpaper.html
+++ b/testapp/exam/templates/exam/automatic_questionpaper.html
diff --git a/testapp/templates/exam/complete.html b/testapp/exam/templates/exam/complete.html
index 1d5df3c..1d5df3c 100644
--- a/testapp/templates/exam/complete.html
+++ b/testapp/exam/templates/exam/complete.html
diff --git a/testapp/templates/exam/design_questionpaper.html b/testapp/exam/templates/exam/design_questionpaper.html
index 8994148..33c8b8f 100644
--- a/testapp/templates/exam/design_questionpaper.html
+++ b/testapp/exam/templates/exam/design_questionpaper.html
@@ -165,7 +165,7 @@ select
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Cannot Save</h4>
</div>
- <div id = "modal_body"class="modal-body">
+ <div class="modal-body">
Please select questions for your paper
</div>
<div class="modal-footer">
diff --git a/testapp/templates/exam/edit_question.html b/testapp/exam/templates/exam/edit_question.html
index b28cc3e..b28cc3e 100644
--- a/testapp/templates/exam/edit_question.html
+++ b/testapp/exam/templates/exam/edit_question.html
diff --git a/testapp/templates/exam/edit_quiz.html b/testapp/exam/templates/exam/edit_quiz.html
index 6445907..6445907 100644
--- a/testapp/templates/exam/edit_quiz.html
+++ b/testapp/exam/templates/exam/edit_quiz.html
diff --git a/testapp/templates/exam/editquestionpaper.html b/testapp/exam/templates/exam/editquestionpaper.html
index 819ff06..819ff06 100644
--- a/testapp/templates/exam/editquestionpaper.html
+++ b/testapp/exam/templates/exam/editquestionpaper.html
diff --git a/testapp/templates/exam/grade_user.html b/testapp/exam/templates/exam/grade_user.html
index ae9274e..ae9274e 100644
--- a/testapp/templates/exam/grade_user.html
+++ b/testapp/exam/templates/exam/grade_user.html
diff --git a/testapp/templates/exam/intro.html b/testapp/exam/templates/exam/intro.html
index ec1888a..ec1888a 100644
--- a/testapp/templates/exam/intro.html
+++ b/testapp/exam/templates/exam/intro.html
diff --git a/testapp/templates/exam/login.html b/testapp/exam/templates/exam/login.html
index 078e7a7..078e7a7 100644
--- a/testapp/templates/exam/login.html
+++ b/testapp/exam/templates/exam/login.html
diff --git a/testapp/templates/exam/manual_questionpaper.html b/testapp/exam/templates/exam/manual_questionpaper.html
index 1a1f95c..1a1f95c 100644
--- a/testapp/templates/exam/manual_questionpaper.html
+++ b/testapp/exam/templates/exam/manual_questionpaper.html
diff --git a/testapp/templates/exam/monitor.html b/testapp/exam/templates/exam/monitor.html
index ecdb852..ecdb852 100644
--- a/testapp/templates/exam/monitor.html
+++ b/testapp/exam/templates/exam/monitor.html
diff --git a/testapp/templates/exam/question.html b/testapp/exam/templates/exam/question.html
index a3e8629..a3e8629 100644
--- a/testapp/templates/exam/question.html
+++ b/testapp/exam/templates/exam/question.html
diff --git a/testapp/templates/exam/quit.html b/testapp/exam/templates/exam/quit.html
index fee11ed..fee11ed 100644
--- a/testapp/templates/exam/quit.html
+++ b/testapp/exam/templates/exam/quit.html
diff --git a/testapp/templates/exam/quizlist.html b/testapp/exam/templates/exam/quizlist.html
index 9b1fd73..9b1fd73 100644
--- a/testapp/templates/exam/quizlist.html
+++ b/testapp/exam/templates/exam/quizlist.html
diff --git a/testapp/templates/exam/quizzes_user.html b/testapp/exam/templates/exam/quizzes_user.html
index 914b6b4..914b6b4 100644
--- a/testapp/templates/exam/quizzes_user.html
+++ b/testapp/exam/templates/exam/quizzes_user.html
diff --git a/testapp/templates/exam/register.html b/testapp/exam/templates/exam/register.html
index 5ff79cc..5ff79cc 100644
--- a/testapp/templates/exam/register.html
+++ b/testapp/exam/templates/exam/register.html
diff --git a/testapp/templates/exam/results_user.html b/testapp/exam/templates/exam/results_user.html
index 2a2a309..2a2a309 100644
--- a/testapp/templates/exam/results_user.html
+++ b/testapp/exam/templates/exam/results_user.html
diff --git a/testapp/templates/exam/show_quiz.html b/testapp/exam/templates/exam/show_quiz.html
index cf3f552..cf3f552 100644
--- a/testapp/templates/exam/show_quiz.html
+++ b/testapp/exam/templates/exam/show_quiz.html
diff --git a/testapp/templates/exam/showquestionpapers.html b/testapp/exam/templates/exam/showquestionpapers.html
index e511472..e511472 100644
--- a/testapp/templates/exam/showquestionpapers.html
+++ b/testapp/exam/templates/exam/showquestionpapers.html
diff --git a/testapp/templates/exam/showquestions.html b/testapp/exam/templates/exam/showquestions.html
index 62b40e4..62b40e4 100644
--- a/testapp/templates/exam/showquestions.html
+++ b/testapp/exam/templates/exam/showquestions.html
diff --git a/testapp/templates/exam/showusers.html b/testapp/exam/templates/exam/showusers.html
index 01ecc37..01ecc37 100644
--- a/testapp/templates/exam/showusers.html
+++ b/testapp/exam/templates/exam/showusers.html
diff --git a/testapp/templates/exam/user_data.html b/testapp/exam/templates/exam/user_data.html
index 61a3a97..61a3a97 100644
--- a/testapp/templates/exam/user_data.html
+++ b/testapp/exam/templates/exam/user_data.html
diff --git a/testapp/templates/manage.html b/testapp/exam/templates/manage.html
index 1db8a78..1db8a78 100644
--- a/testapp/templates/manage.html
+++ b/testapp/exam/templates/manage.html
diff --git a/testapp/templates/user.html b/testapp/exam/templates/user.html
index 22a9fac..22a9fac 100644
--- a/testapp/templates/user.html
+++ b/testapp/exam/templates/user.html
diff --git a/testapp/exam/urls.py b/testapp/exam/urls.py
index b659cf6..37a031d 100644
--- a/testapp/exam/urls.py
+++ b/testapp/exam/urls.py
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import patterns, include, url
+from django.conf.urls import patterns, include, url
urlpatterns = patterns('exam.views',
url(r'^$', 'index'),
diff --git a/testapp/exam/views.py b/testapp/exam/views.py
index 38beb0d..7c9af6c 100644
--- a/testapp/exam/views.py
+++ b/testapp/exam/views.py
@@ -23,7 +23,7 @@ from exam.xmlrpc_clients import code_server
from settings import URL_ROOT
# The directory where user data can be saved.
-OUTPUT_DIR = abspath(join(dirname(__file__), pardir, 'output'))
+OUTPUT_DIR = abspath(join(dirname(__file__), 'output'))
def my_redirect(url):
diff --git a/testapp/settings.py b/testapp/settings.py
index 668eca0..88d4a5a 100644
--- a/testapp/settings.py
+++ b/testapp/settings.py
@@ -5,18 +5,6 @@ from os.path import dirname, join, basename, abspath
DEBUG = True
TEMPLATE_DEBUG = DEBUG
-# The ports the code server should run on. This will run one separate
-# server for each port listed in the following list.
-SERVER_PORTS = [8001] # range(8001, 8026)
-
-# The server pool port. This is the server which returns available server
-# ports so as to minimize load. This is some random number where no other
-# service is running. It should be > 1024 and less < 65535 though.
-SERVER_POOL_PORT = 53579
-
-# Timeout for the code to run in seconds. This is an integer!
-SERVER_TIMEOUT = 2
-
# The root of the URL, for example you might be in the situation where you
# are not hosted as host.org/exam/ but as host.org/foo/exam/ for whatever
# reason set this to the root you have to serve at. In the above example
@@ -111,7 +99,6 @@ STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- join(CURDIR, 'static'),
)
# List of finder classes that know how to find static files in
@@ -148,7 +135,6 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- join(CURDIR, "templates"),
)
INSTALLED_APPS = (
diff --git a/testapp/setup.py b/testapp/setup.py
new file mode 100644
index 0000000..a5ca067
--- /dev/null
+++ b/testapp/setup.py
@@ -0,0 +1,39 @@
+import os
+from setuptools import setup
+
+README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
+
+# allow setup.py to be run from any path
+os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
+
+setup(
+ name='django-exam',
+ author='Prabhu Ramachandran',
+ author_email='prabhu.ramachandran@gmail.com',
+ version='0.1',
+ packages=['exam'],
+ include_package_data=True,
+ license='BSD License',
+ description='A django app to conduct online test.',
+ long_description=README,
+ install_requires=[
+ 'django',
+ 'django-taggit',
+ 'django-taggit-autocomplete-modified',
+ ],
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Web Environment',
+ 'Framework :: Django',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: Education',
+ 'Intended Audience :: End Users/Desktop',
+ 'License :: OSI Approved :: BSD License',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2.6',
+ 'Programming Language :: Python :: 2.7',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
+ ],
+)
diff --git a/testapp/urls.py b/testapp/urls.py
index c82ecb6..0d126f4 100644
--- a/testapp/urls.py
+++ b/testapp/urls.py
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import patterns, include, url
+from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin