Settings

Theme

Django Pattern: get_allowed_or_404

3oh2.com

1 points by jbox 16 years ago · 0 comments · 1 min read

Reader

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.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection