Skip to content
Snippets Groups Projects
Commit a22157db authored by Roman Dvořák's avatar Roman Dvořák
Browse files

add guide for manual user onboarding

parent f6ae38c7
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,8 @@ but it is not necessary because ADMIN has control over every resource on the pla
## User onboarding
### Authomatically
Users can be added to the platform via a `.csv` file in the following format:
```
......@@ -74,3 +76,23 @@ Admin can be created only by admin users.
As a separator for the column, you can use either `,` or `;`.
An example of such a file can be [downloaded](https://gitlab.fi.muni.cz/inject/inject-docs/-/raw/main/docs/tech/example_csv.csv?ref_type=heads&inline=false).
### Manually
Another way of adding users is manually via the console:
- List the running Docker containers to find the **NAME** of the backend container:
```
docker ps
```
- Execute a shell session in the backend container. Replace `CONTAINERNAME` with the actual container **NAME** of the backend service:
```
docker exec -it CONTAINERNAME python manage.py shell
```
- Create a user using the Django shell. Replace `email@test.com` and `password` with your desired user credentials.:
``` python
from user.models import User
User.objects.create_user(username="email@test.com", password="password")
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment