Add instructions for import to readme

This commit is contained in:
Ramon Wenger 2019-11-26 09:38:09 +01:00
parent 2913796a1b
commit d39636f574
1 changed files with 14 additions and 1 deletions

View File

@ -35,7 +35,7 @@ docker run --name skillboxdb -d -p 5432:5432 -e POSTGRES_PASSWORD=skillbox -e PO
#### Commands
* Create a new teacher demo account on prod
##### 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>
@ -49,6 +49,19 @@ Then you can just run in terminal:
create_teacher <firstname> <lastname> <email>
```
##### Import a CSV file
To import a CSV file locally, run:
```
python manage.py <csv-file>
```
To import a CSV file on prod, first upload the CSV file to some public S3 bucket (or make it publicly available some other way)
```
heroku login # if not already logged in
heroku run --remote heroku python server/manage.py import_users --s3 <csv-url>
```
### Client