17 lines
486 B
HTML
17 lines
486 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %} login {% endblock %}
|
|
|
|
{% block content %}
|
|
{% if not user.is_authenticated %}
|
|
<h2>log in</h2>
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
{{ form.username.label_tag }} {{ form.username }}
|
|
{{ form.password.label_tag }} {{ form.password }}
|
|
<button type="submit">log in</button>
|
|
</form>
|
|
{% else %}
|
|
<div>you're already log in !</div>
|
|
{% endif %}
|
|
{% endblock %} |