Python Querysets and Django Shell | Database Shell

Publicado em: 15 Setembro 2020
no canal de: CodeWorld!
55
2

Github : https://github.com/ankurgla22/django-...
Tutorial: http://tech.bestguru.jp/django-drf-au...

Python Querysets and Django Shell | Database Shell

In this tutorial we will learn how to query the database.
We will use the django shell to query the database.
We will grab post that we already created, create new post and even delete some post so lets get started.

The django shell commands:
1. python3 manage.py shell
2. from api.models import Country
3. Country.objects.all()
4. Country.objects.create(name="Japan")
5. Country.objects.filter(name="Japan").delete()

Copyright © 2020 A. Tech Group. All Rights Reserved


Nesta página do site você pode assistir ao vídeo on-line Python Querysets and Django Shell | Database Shell duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodeWorld! 15 Setembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 55 vezes e gostou 2 espectadores. Boa visualização!