Python Querysets and Django Shell | Database Shell

Pubblicato il: 15 settembre 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Python Querysets and Django Shell | Database Shell della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeWorld! 15 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 55 volte e gli è piaciuto 2 spettatori. Buona visione!