Adding a new user¶
Collecting information¶
For each user, you will need to collect some information:
- First name(s)
- Last name(s)
- Username
- Pronouns the person uses
- Password (this can always be changed)
- Bio
- Image in JPEG or PNG format (see below)
- Any professional or personal websites to add to the profile
Filling out the YAML file¶
Once you have all the information collected, you can start working in the file backend/setup/users.yml
where you want to add the collected information above, in a format that follows this template:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
This section needs to be added to whichever category of user you wish to add:
- SUPER: Has full access to the site and all the database models
- STAFF: Has backend access to the admin interface, but not necessarily to all the database models.
- USER: Has no acccess to the admin interface but is a normal "learner" on the site.
See below for an example of how the YAML file needs to be structured.
Adding an image¶
Note: It is important to not forget to add the image file that you list in the users.yml
file to the correct directory.
Full example of YAML file users.yml
¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|