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
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 :
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
>
>
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.
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
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
6 matches
Mail list logo