79294734

Date: 2024-12-19 15:14:08
Score: 1
Natty:
Report link

Comment from raphael answers the question 100%! Django looks at your url patterns in order until it finds one that matches, so path("accounts/login", views.atest, name="login") will not ever be seen because path("accounts/", include("django.contrib.auth.urls")) matches first. Having said that, if all you want to do is create a user registration page, or style the login page, then you don't need this.

Check out developer.mozilla.org/en-US/docs/Learn/Server-side/Django/… (especially developer.mozilla.org/en-US/docs/Learn/Server-side/Django/…) –

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lars