Hacker News new | ask | show | jobs
by mattwdelong 5026 days 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/...

1 comments

Good point, that would be better.