Discussion :: Django
- What happens if MyObject.objects.get() is called with parameters that do not match an existing item in the database?
A.
The Http404 exception is raised
|
B.
The DatabaseError exception is raised
|
C.
The MyObject.DoesNotExist exception is raised
|
D.
The object is created and returned
|
Answer : Option C
Explanation :
Be The First To Comment