Commit 1896ddb2e0548ae7c3882d4358f2631499d46328
1 parent
9b790f45
Exists in
master
and in
1 other branch
- added the logs directory to git
- modified config/server.conf to point to logs/ directory - modified demo/test.yaml with better explanations
Showing
3 changed files
with
31 additions
and
29 deletions
Show diff stats
config/server.conf
... | ... | @@ -23,8 +23,8 @@ server.socket_port = 8080 |
23 | 23 | log.screen = False |
24 | 24 | |
25 | 25 | # add path to the log files here. empty strings disable logging |
26 | -log.error_file = '/Users/mjsb/Work/Projects/perguntations/logs/errors.log' | |
27 | -log.access_file = '' | |
26 | +log.error_file = 'logs/errors.log' | |
27 | +log.access_file = 'logs/access.log' | |
28 | 28 | |
29 | 29 | # DO NOT DISABLE SESSIONS! |
30 | 30 | tools.sessions.on = True | ... | ... |
demo/test.yaml
... | ... | @@ -2,61 +2,61 @@ |
2 | 2 | ref: demo |
3 | 3 | title: Teste de Demonstração |
4 | 4 | |
5 | -# database contains students+passwords, final results of the tests, and questions done | |
6 | -# database: path/to/students.db | |
7 | -database: db/students.db | |
5 | +# Database with student credentials and grades of all questions and tests done | |
6 | +# The database is an sqlite3 file generate with the script initdb_from_csv.py | |
7 | +database: demo/students.db | |
8 | 8 | |
9 | -# this will generate a file for each test done. The file is like a replacement | |
10 | -# for a test done in paper. | |
11 | -answers_dir: ans/demo | |
9 | +# (optional) Generate a file for each test done by a student. | |
10 | +# It includes the questions, answers and grades. | |
11 | +# If undefined, then no tests are saved (useful for debug and training) | |
12 | +# answers_dir: WHERE_TO_SAVE_THE_TESTS | |
12 | 13 | |
14 | +# Show points for each question, scale 0-20 (default: False) | |
13 | 15 | show_points: True |
16 | + | |
17 | +# Show question's hint if available (default: False) | |
14 | 18 | show_hints: True |
19 | + | |
20 | +# In practice mode a test can be repeat any number of times (default: False) | |
15 | 21 | practice: True |
16 | -# debug: False | |
22 | + | |
23 | +# Show lots of information for debugging (default: False) | |
24 | +# debug: True | |
17 | 25 | |
18 | 26 | #----------------------------------------------------------------------------- |
19 | 27 | # Base path applied to the questions files and all the scripts |
20 | 28 | # including question generators and correctors. |
21 | 29 | # Either absolute path or relative to current directory. |
22 | 30 | questions_dir: demo |
23 | -# (Note: answers are saved in a different path defined in answers_dir) | |
24 | 31 | |
25 | -#----------------------------------------------------------------------------- | |
26 | -# List of files containing questions in yaml format. | |
32 | +# (optional) List of files containing questions in yaml format. | |
27 | 33 | # Selected questions will be obtained from these files. |
28 | -# If no files are provided, all files in questions_dir are loaded. | |
34 | +# If undefined, all files in questions_dir are loaded. | |
29 | 35 | files: |
30 | 36 | - questions.yaml |
31 | 37 | |
32 | -#----------------------------------------------------------------------------- | |
33 | 38 | # This is the list of questions. If a "ref:" has a list of keys, then |
34 | 39 | # one question is selected from the list. |
35 | 40 | # The following example will generate a test with 3 questions. |
36 | 41 | questions: |
37 | - # first | |
42 | + # first question | |
38 | 43 | - ref: |
39 | - # choose 1 from the following 3 questions | |
44 | + # choose 1 from the following 2 questions | |
40 | 45 | - solar-system-mars |
41 | 46 | - solar-system-jupiter |
42 | 47 | points: 0.5 |
43 | 48 | |
44 | - # second | |
49 | + # second question | |
45 | 50 | - ref: |
46 | 51 | - question-v1 |
47 | 52 | - question-v2 |
48 | - # points: 1.0 is the default, if not defined here. | |
49 | - | |
50 | - # 3. | |
51 | - - ref: | |
52 | - - question-colors | |
53 | - | |
54 | - # 4. | |
55 | - - ref: | |
56 | - - question-whatever | |
53 | + # points: 1.0 is the default, if omitted | |
57 | 54 | |
58 | - # 5. | |
59 | - - ref: one-question | |
55 | + # one question | |
56 | + - ref: question-colors | |
57 | + points: 1.5 | |
60 | 58 | |
61 | - # 6. | |
59 | + # just use defaults | |
60 | + - question-whatever | |
61 | + - one-question | |
62 | 62 | - another-question | ... | ... |