Opened 6 days ago

Closed 5 days ago

Last modified 5 days 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 Changed 6 days ago by Tim Graham

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 Changed 5 days ago by GitHub <noreply@…>

Resolution: fixed
Status: newclosed

In 4114b441:

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

comment:3 Changed 5 days ago by Tim Graham <timograham@…>

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