format html + put js in static

This commit is contained in:
2023-09-19 12:03:36 +02:00
parent 0ed9acd405
commit 7fb593c98a
7 changed files with 85 additions and 82 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
{% extends 'base.html' %}
{% block title %}login{% endblock %}
{% 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>
{% csrf_token %}
{{ form.as_p }}
<button type="submit">log in</button>
</form>
{% else %}
you're already log in !
<div>you're already log in !</div>
{% endif %}
{% endblock %}