Skip to content

Instantly share code, notes, and snippets.

@vitorfs
Created September 30, 2017 15:36
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 vitorfs/1ab597fe18e2dc56028f7aa8c3b588b3 to your computer and use it in GitHub Desktop.
Save vitorfs/1ab597fe18e2dc56028f7aa8c3b588b3 to your computer and use it in GitHub Desktop.
{% extends 'base_accounts.html' %}
{% block title %}Log in to Django Boards{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-lg-4 col-md-6 col-sm-8">
<div class="card">
<div class="card-body">
<h3 class="card-title">Log in</h3>
<form method="post" novalidate>
{% csrf_token %}
<input type="hidden" name="next" value="{{ next }}">
{% include 'includes/form.html' %}
<button type="submit" class="btn btn-primary btn-block">Log in</button>
</form>
</div>
<div class="card-footer text-muted text-center">
New to Django Boards? <a href="{% url 'signup' %}">Sign up</a>
</div>
</div>
<div class="text-center py-2">
<small>
<a href="{% url 'password_reset' %}" class="text-muted">Forgot your password?</a>
</small>
</div>
</div>
</div>
{% endblock %}
@WorkIdea
Copy link

Is not necessary to add this part of code <input type="hidden" name="next" value="{{ next }}"> when I tried without this part worked very well. I don't know may be can there are some inconvenient living without this tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment