Creating a new course¶
Courses are defined by subdirectories found in the tasks directory, which has been specified in the configuration.
See Configuration reference. These subdirectories are composed of a
course.yaml file describing the course parameters
and other subdirectories corresponding to tasks (See Creating a new task).
Here is an example of the content of a tasks folder:
tasks/ course_id_1/ course.yaml task_id_1/ task.yaml run ... ... ...
Ideally, you should only give permissions to a course folder to the course administrator if needed. The webapp task editor should not require you to give this access. If needed, several methods exist. See inginious-synchronize for Git repository synchronization.
Creating courses is reserved to the super-administrators (See Configuration reference). Course administrators are then able to configure the course by themselves.
Using the webapp¶
- As a super-administrator, go to the bottom of the course list and enter a new course id, for instance
demo, and click on Create new course. A newly created hidden course named demo appears on the list.
- Click on that course, and then on Course administration to change the course parameters, add course administrators and tasks.
Please note that, if you give access to the course directory to course administrators, you still have to do some manual work for this to be effective.
The course description is a YAML file containing all the course parameters used by INGInious.
Here is a simple course description. Put this file with the name
course.yaml in a newly created
demo folder in
your tasks directory.
name: "[DEMO] Demonstration course" admins: - demouser
This elementary course description file will make a new publicly visible course with id
demo appear as
[DEMO] Demonstration course on the course list.
Course description files¶
Inside the task folder, courses are identified by subdirectories name by their course id and containing a
file. For instance, this file, for a course with id
courseid1, should be placed in a
course.yaml is a YAML file containing the course configuration.
admins: - demouser name: "[DEMO] Demonstration course" tutors:  groups_student_choice: false use_classrooms: true accessible: true registration: true registration_password: null registration_ac: null
course.yaml file must be present at the course root dir, all the fields inside are actually only used by
the webapp. Here are the possible fields to set:
nameDisplayed name of the course on the course list.
adminsList of administrators usernames. These users will have complete administrations right on the course.
tutorsList of tutors usernames (restricted-rights teaching assistants). These users will have read-only rights on the course content. They cannot change course parameters nor tasks, cannot replay submissions or wipe the course data. However, they can manage the classroom composition and download all the student submissions.
accessibleWhen this field is defined, the course is only visible if within the defined period. A course is always accessible to its admins, and is only hidden to normal users, even if they are registered to the course. This field can contain theses values:
the task is always accessible;
the task is never accessible;
where <start> and <end> are either empty or valid dates like “2014-05-10 10:11:12” or “2014-06-18”. The task is only accessible between <start> and <end>. If one of the values is empty, the corresponding limit does not apply.
Dates are always considered as a precise instant (to te lowest resolution of the clock). For example, “2014-05-21” is expanded to “2014-05-21 00:00:00”. This means that start limits are inclusive, while end limits are exclusive.
"2014-05-21 / 2014-05-28" "/ 2014-01-01 " # (strictly) before january the first "2030-01-01 /" # opens in 2030 "/" # Always open "/ 2013-12-31 23:59:59" # closes one minute before "/ 2014-01-01"
registrationWhen this field is defined, users can only register to the course between the defined period. It takes the same arguments as
allow_unregisterIf this field is defined and set to
false, then students are not allowed to auto-unregister from the course.
registration_passwordA password that is asked upon registration to the course. If empty or not defined, no password will be asked.
registration_acAccess control (AC) method. Can be
null(anyone can register),
username(filter by username),
realname(filter by real name) or
registration_ac_listIf AC is activated,
registration_ac_listshould contain a list of values for the filter.
nofrontendIf this field is defined and set to
true, then the course won’t be displayed on the webapp course list.
groups_student_choiceIf this field is defined and set to
trueand if collaborative work is activated for a given task, students will be invited to register by themselves for a group or team before submitting.
use_classroomsIf this field is set to
true, the classroom model will be used, otherwise, the team model will be used. The default value for this field is
true. (See Classrooms and teams)