Django Interview Part 4
Django Interview Part 4
Part 4
A R U N A R U N I S T O
Difference between .get() and .filter() in
django ORM?
The .get() method is used to retrieve a single
object from the database. It takes one or
more arguments, which are used to filter the
results. If there is no matching object, the
.get() method will raise a DoesNotExist
exception.