title: How to customize default auth login form in Django?
body: <p>How do you customize the default login form in Django?</p>
  
  <pre><code># demo_project/urls.py
  from django.contrib import admin
  from django.urls import include, path
  
  urlpatterns = [
      path('', include('pages.urls')),
      path('users/', include('users.urls')), # new
      path('users/', include('django.contrib.auth.urls')), # new
      path('admin/', admin.site.urls),
  ]
  
  &lt;!-- templates/registration/login.html --&gt;
      &lt;h2&gt;Login&lt;/h2&gt;
      &lt;form method="post"&gt;
      {% csrf_token %}
      {{ form.as_p }}
      &lt;button type="submit"&gt;Login&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Above code works but I need to customize that {{form.as_p}} Where is that form or can it be override? Thanks for the help.</p>