Add documentation for creating teachers
This commit is contained in:
parent
38777cf914
commit
bcf274dd2d
17
README.md
17
README.md
|
|
@ -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/
|
* `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
|
### Client
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue