How-to guides¶
Each guide answers one question a project meets, in the fewest steps that answer it. The tutorial builds a project from the start; these are for a project already under way.
| guide | the question |
|---|---|
| Adopt it in an existing project | we use Django's permissions already - what changes? |
| Scope rows by a field of the person | each person sees their region's rows |
| An approval only some may give | only a manager approves, and never their own |
| Reference data everybody reads | everybody chooses a branch, few change one |
| A view that holds no model | a report, an export, an API root |
| Use an admin site of your own | our admin site has its own header and pages |
| Keep roles on the user model | our users have a role column already |
| Keep an audit trail | who gave whom what, and when |
| Check access in CI | the database and the ACCESS file must agree |
| Workers and websockets | a process that outlives a request |
| Test what people may do | a test per rule, not per view |