#28886 closed Cleanup/optimization (fixed)
Example included auth urls don't include accounts/ prefix assumed by much of the other documentation
| Reported by: | David Mugnai | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.11 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In the "The login_required decorator" paragraph of the "Using the Django authentication system" guide is stated that the default url for the login view is "/accounts/login", but in the "Authentication Views" section all the examples don't use the "accounts/" part.
I think the examples should be changed to start with this code:
urlpatterns = [
path('^accounts$', include('django.contrib.auth.urls')),
]
Change History (3)
comment:1 by , 8 years ago
| Summary: | Two different urls set are suggested for start with the authentication subsystem → Example included auth urls don't include accounts/ prefix assumed by much of the other documentation |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
PR