Hacker News new | ask | show | jobs
by mwcampbell 1367 days ago
> Things like 'get_object_or_404'[1] should be burned to the ground.

Why? A shortcut like that is useful all the time when writing URL handlers (views in Django).

1 comments

What does the object have to do with http status codes? It completely entangles the HTTP layer with the database model.