Add user signup form and implement signup view; enhance message display in templates

This commit is contained in:
Edgar P. Burkhart 2025-06-14 10:01:45 +02:00
parent 6ab5748cbc
commit 700ab7ecca
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
8 changed files with 66 additions and 2 deletions

View file

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% load form %}
{% block content %}
<h1>Créer un compte</h1>
{% form form %}
{% endblock content %}

View file

@ -57,6 +57,7 @@
</div>
</header>
<main class="container">
{% for message in messages %}<article class="message {{ message.tags }}">{{ message }}</article>{% endfor %}
{% block content %}
{% endblock content %}
</main>

View file

@ -2,5 +2,8 @@
{% load form %}
{% block content %}
<h1>Connexion</h1>
<p>
<a href="{% url "signup" %}">Créer un compte</a>
</p>
{% form form submit="Se connecter" %}
{% endblock content %}