Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Django Pattern: get_allowed_or_404 | Better HN
0 comments
No comments yet.
Django Pattern: get_allowed_or_404
(opens in new tab)
(3oh2.com)
1 points
jbox
16y ago
0 comments
Share
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.