Python Querysets and Django Shell | Database Shell

Publicado el: 15 septiembre 2020
en el 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


En esta página del sitio puede ver el video en línea Python Querysets and Django Shell | Database Shell de Duración hora minuto segunda en buena calidad , que subió el usuario CodeWorld! 15 septiembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 55 veces y le gustó 2 a los espectadores. Disfruta viendo!