Fetch model data with django

Shop Forums Django Discussion Fetch model data with django

Viewing 0 reply threads
  • Author
    • #7166
      Projects Plaza

      We can easily fetch data from database in Django. Suppose we want to fetch data of Employee model, We will run the following query to fetch data.

      fetch all data employees=Employee.objects.all()
      fetch specific data employees=Employee.objects.get(pk=id)

Viewing 0 reply threads
  • You must be logged in to reply to this topic.