Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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 Tim Graham, 7 years ago

Summary: Two different urls set are suggested for start with the authentication subsystemExample included auth urls don't include accounts/ prefix assumed by much of the other documentation
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:2 by GitHub <noreply@…>, 7 years ago

Resolution: fixed
Status: newclosed

In 4114b441:

Fixed #28886 -- Updated prefix for example django.contrib.auth.urls URLs.

comment:3 by Tim Graham <timograham@…>, 7 years ago

In e30674a:

[2.0.x] Fixed #28886 -- Updated prefix for example django.contrib.auth.urls URLs.

Backport of 4114b441ee63e5e9196f20beee5cb071d1a21b3b from master

Note: See TracTickets for help on using tickets.
Back to Top