Add documentation for creating teachers

This commit is contained in:
Ramon Wenger 2019-10-23 10:51:18 +02:00
parent 38777cf914
commit bcf274dd2d
1 changed files with 17 additions and 0 deletions

View File

@ -33,6 +33,23 @@ docker run --name skillboxdb -d -p 5432:5432 -e POSTGRES_PASSWORD=skillbox -e PO
* `DEBUG=True` enables the debug middleware http://docs.graphene-python.org/projects/django/en/latest/debug/
#### Commands
* Create a new teacher demo account on prod
```
heroku login # if not already logged in
heroku run --remote heroku python server/manage.py create_teacher <firstname> <lastname> <email>
```
Tip: create and alias in ~/.bash_aliases:
```
alias create_teacher="heroku run --remote heroku python server/manage.py create_teacher"
```
Then you can just run in terminal:
```
create_teacher <firstname> <lastname> <email>
```
### Client