Development tools

Django tips

Open the shell

$ ./manage.py shell

Clear database

$ ./manage.py flush

Update your model file /models.py. Then create the database migrations for the app and migrate you database

$ ./manage.py makemigrations <app-name>
$ ./manage.py migrate

PostgreSQL tips

For using psql on Debian-based system install the following package

$ apt-get install postgresql-client

Docker tips

Output all running container

docker ps -a
``

Stop and delete a container
```bash
docker stop <container-id>
docker rm <container-id>