Re: Fetching data from database

2020-10-29 Thread Derek
Have a look at: https://www.guru99.com/python-mysql-example.html and then: https://www.mysqltutorial.org/python-mysql-insert/ https://www.mysqltutorial.org/python-mysql-update/ Not too hard for a beginner. On Wednesday, 28 October 2020 at 20:43:02 UTC+2 kiran...@gmail.com wrote: > Hi

Re: Fetching data from database

2020-10-29 Thread kern zhou
How to queries in DB: https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-all-objects For the primary key: https://docs.djangoproject.com/en/3.1/ref/models/fields/#primary-key For the foreign key :

Re: Fetching data from database

2020-10-28 Thread Kiran Bangde
Thanks, I'll check them out. On Thu, 29 Oct, 2020, 10:08 AM David Nugent, wrote: > You question isn't very specific, however I'll try to add a couple of > touch-points that may provide some direction. > > Django manage.py can provide direct access to your models. > > python manage.py shell > >

Re: Fetching data from database

2020-10-28 Thread David Nugent
You question isn't very specific, however I'll try to add a couple of touch-points that may provide some direction. Django manage.py can provide direct access to your models. python manage.py shell is your friend, for manually manipulating data, including the database via the Django ORM.

Re: Fetching data from database

2020-10-28 Thread Ashutosh Mishra
You have go through the django docs, In django request.method.POST is used to inser data And Model.objecs.all() this is the way how you fetch data, You need to study docs On Thu 29 Oct, 2020, 00:13 Kiran Bangde, wrote: > Hi everyone, > > Iam stuck at a point ...I want to fetch a data from a

Fetching data from database

2020-10-28 Thread Kiran Bangde
Hi everyone, Iam stuck at a point ...I want to fetch a data from a database , where data should be insert manually , plz help me how to do that how to fire a queries in DB and how to use primary key and foreign key over here. Please help me ,Iam new to Django . Thanks in advance -- You