4 ms·
I would recommend that get_object_or_404, with the 404 page enabled, would be better suited for this application. Very similar methods, but this way just handle
by mattwdelong 14y ago
I would recommend that get_object_or_404, with the 404 page enabled, would be better suited for this application. Very similar methods, but this way just handles all the heavy lifting.
https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#get-object-or-404 https://docs.djangoproject.com/en/dev/topics/http/shortcuts/...
- run4yourlives 14y agoGood point, that would be better.