Changes between Initial Version and Version 1 of Ticket #36699, comment 1


Ignore:
Timestamp:
Oct 31, 2025, 7:55:11 AM (4 weeks ago)
Author:
Natalia Bidart

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36699, comment 1

    initial v1  
    1 ### Proposed Fix
     1== Proposed Fix ==
    22Below is a proposed fix for the login page (404) issue discussed in this ticket. 
    33This fix demonstrates how a Django project can manually define a login route, view, and template. 
    44It also helps clarify to new users why the default `/login/` route does not exist.
    55
    6 ```python
     6{{{#!python
    77# mysite/urls.py
    88from django.urls import path
     
    1818def login_view(request):
    1919    return render(request, 'login.html')
     20}}}
     21
     22{{{
    2023<!-- templates/login.html -->
    2124<h1>Login Page</h1>
     
    2629  <button type="submit">Login</button>
    2730</form>
     31}}}
Back to Top