#33327: Missing template for the LoginView in the contrib.auth.views module
----------------------------------------+------------------------
               Reporter:  webontos      |          Owner:  nobody
                   Type:  Bug           |         Status:  new
              Component:  contrib.auth  |        Version:  3.2
               Severity:  Normal        |       Keywords:
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+------------------------
 Dears,

 Django framework raises the following exception while calling the
 LoginView (in contrib.auth.views) and using the default template
 'registration/login.html':

 Exception Type: TemplateDoesNotExist
 Exception Value:        registration/login.html

 I'm using the following URL pattern:

 urlpatterns = [
     path('accounts/', include('django.contrib.auth.urls')),
 ]

 and then calling the login view via the following URL:
 http://127.0.0.1:8000/my_app_name/accounts/login/

 After double checking the templates folder in the contrib.auth component,
 I can't see any template with the name login.html.

 I made a small project to further illustrate the issue:
 https://github.com/webontos/missinglogintemplate

 In case this is a real bug, I believe the documentation needs to be
 updated accordingly:
 https://docs.djangoproject.com/en/3.2/topics/auth/default/

 I hope I'm not missing anything!

 First time to report a potential bug to Django community and I hope this
 helps :)


 All the best,

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33327>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.cc9e09fb594af69151431b9e937fa9c4%40djangoproject.com.

Reply via email to