3 ms·
> 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 Djang
by mwcampbell 4y 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).
- tcbasche 4y agoWhat does the object have to do with http status codes? It completely entangles the HTTP layer with the database model.