Skip to content

Instantly share code, notes, and snippets.

@4k45hv3rm4
Created July 16, 2020 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4k45hv3rm4/73f61676fc0671034e6f3398fde93968 to your computer and use it in GitHub Desktop.
Save 4k45hv3rm4/73f61676fc0671034e6f3398fde93968 to your computer and use it in GitHub Desktop.
{% extends 'base.html' %}
{% load static %}
{%block title %}Login{% endblock %}
{% block content %}
<div class="container jumbotron text-justify">
<h1 class="display-4">Login Here </h1>
<form id="login_form" class="form" method="post" action="{% url 'login' %}">
{% csrf_token %} <!-- for security reasons -->
{{login_form.as_p}} <!-- rendering form as paragraph -->
<input type="submit" class="btn btn-outline-info" value="Login">
</form>
<p ><a class="px-2 mx-2 btn btn-link text-decoration-none" href="{%url 'register' %}">Not a Member?</a>
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment