Wednesday, October 28, 2020

Re: Fetching data from database

You question isn't very specific, however I'll try to add a couple of touch-points that may provide some direction.

Django can provide direct access to your models.

python shell

is your friend, for manually manipulating data, including the database via the Django ORM.

This link to the Django docs could provide a good starting point, particularly further down the page where models are queried using the Django shell.

Secondly are the import and export data commands available in, in particular the dumpdata and loaddata commands. I suspect this is what you are looking for.

On 29 Oct 2020, at 05:33, Kiran Bangde <> wrote:

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 received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment