summaryrefslogtreecommitdiff
path: root/README.txt
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-08 15:40:08 +0530
committerPrabhu Ramachandran2011-11-08 15:40:08 +0530
commit4694d217dd7d5659afdad7ba5937adb85c15371c (patch)
tree2dd78e791414abb6dbd6cf597892942dee0fce8f /README.txt
parentbed96635b1b0aac8548b6df85e96ee256e5e5bcb (diff)
downloadonline_test-4694d217dd7d5659afdad7ba5937adb85c15371c.tar.gz
online_test-4694d217dd7d5659afdad7ba5937adb85c15371c.tar.bz2
online_test-4694d217dd7d5659afdad7ba5937adb85c15371c.zip
ENH: Command to load questions from XML file.
Added manage command to load questions from XML file. Updated README and including a simple set of sample questions for testing.
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt47
1 files changed, 26 insertions, 21 deletions
diff --git a/README.txt b/README.txt
index b1cfb16..fdfddf5 100644
--- a/README.txt
+++ b/README.txt
@@ -4,12 +4,31 @@ Installation
To install/deploy this app follow the steps below:
1. Clone this repository.
+
2. cd to the cloned repo.
- 3. Run $ python manage.py syncdb
- [ enter password etc.]
- 4. Run $ python manage.py runserver <desired_ip>:<desired_port>
- 5. Go to http://server_ip:server_port/admin
- 6. Login with your credentials and add questions to the database.
+
+ 3. Run::
+
+ $ python manage.py syncdb
+ [ enter password etc.]
+
+ 4. Add questions by editing the sample_questions.xml or any other xml
+ file in the same format and then run the following::
+
+ $ python manage.py load_questions sample_questions.xml
+
+ Note that you can supply multiple xml files as arguments and all of
+ those will be added to the database.
+
+ 5. Now, run::
+
+ $ python manage.py runserver <desired_ip>:<desired_port>
+
+ 6. Go to http://server_ip:server_port/admin
+
+ 7. Login with your credentials and look at the questions and modify if
+ needed.
+
7. Now ask users to login at:
http://server_ip:server_port/exam
@@ -19,20 +38,6 @@ To install/deploy this app follow the steps below:
WARNING: django is running in debug mode for this currently, CHANGE it
during deployment
-A sample question
-==================
-
-Here is an example of a good question and tests for it. On the admin
-interface after you login, add a new question with the following fields:
-
- Summary: Fibonnaci
-
- Question: Write function called "fib" which takes a single integer
- argument (say "n") and returns a list of the first "n" fibonacci
- numbers. For example fib(3) -> [1, 1, 2].
-
- Points: 1
+The file sample_questions.xml is a template that you can use for your
+own questions.
- Test:
- assert fib(3) == [1, 1, 2]
- assert fib(6) == [1, 1, 2, 3, 5, 8]