{bootstrap_form form % {buttons %log in {endbuttons %{endblock content %at we load the bootstrap template tags into this template at we define the header blockwhich describes what the page is for notice that we've removed the {if form errors %block from the templatedjangobootstrap manages form errors automatically at we add class="formattributeand then we use the template tag {bootstrap_form %when we display the form xthis replaces the {form as_p }tag we were using in the {booststrap_form %template tag inserts bootstrap style rules into the individual elements of the form as it' rendered at we open bootstrap template tag {buttons %}which adds bootstrap styling to buttons figure - shows the login form as it' rendered now the page is much cleaner and has consistent styling and clear purpose try logging in with an incorrect username or passwordyou'll see that even the error messages are styled consistently and integrate well with the overall site figure - the login page styled with bootstrap