Skip to content

Django Pattern: get_allowed_or_404

3oh2.com
1 pointjboxdiscuss
On HN

In Django, a common view pattern is to protect access to a resource by user ownership. This article discusses how to allow staff to access any resource while still restricting regular user access.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.