diff options
Diffstat (limited to 'README.txt')
-rw-r--r-- | README.txt | 47 |
1 files changed, 26 insertions, 21 deletions
@@ -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] |