Skip to content

Commit

Permalink
README.md: improved flask shell instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeboucas committed May 25, 2020
1 parent f22c906 commit 8bb2f47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ For handling database entries you can start the `flask shell` by:
```bash
docker-compose exec server flask shell
```
make the required imports:
```python
from flaski import app, db
from flaski.models import User, UserLogging
```
and then for removing a user from the db:
```python
u=User.query.filter_by(email=<user_email>).first()
Expand Down

0 comments on commit 8bb2f47

Please sign in to comment.