16 lines
390 B
HTML
16 lines
390 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.as_p }}
|
|
<button type="submit">log in</button>
|
|
</form>
|
|
{% else %}
|
|
<div>you're already log in !</div>
|
|
{% endif %}
|
|
{% endblock %} |