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
On this page of the site you can watch the video online Python Querysets and Django Shell | Database Shell with a duration of hours minute second in good quality, which was uploaded by the user CodeWorld! 15 September 2020, share the link with friends and acquaintances, this video has already been watched 55 times on youtube and it was liked by 2 viewers. Enjoy your viewing!