Code

#19435 closed Bug (invalid)

the login.html is missing in the folder "\django\contrib\admin\templates\registration"

Reported by: turtle527@… Owned by: nobody
Component: contrib.admin Version: 1.4
Severity: Normal Keywords: login.html
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi Django team,

According to the page "https://docs.djangoproject.com/en/dev/topics/auth/", i tried to use the "(r'accounts/login/$', 'django.contrib.auth.views.login')," in the URLconf, and there is an error when loading the login.html template if user is not login and the page will be redirected to the login page.

regards,
lei

Attachments (0)

Change History (1)

comment:1 Changed 19 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Please, read carefully the docs ("It's your responsibility to provide the login form in a template called registration/login.html by default").

TicketClosingReasons/UseSupportChannels

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.