Add signup and login pages

This commit is contained in:
2024-06-29 19:29:47 -04:00
parent 3b0746ed83
commit 589d109cec
8 changed files with 75 additions and 3 deletions

16
templates/home.html Normal file
View File

@@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block content %}
{% if user.is_authenticated %}
<h2>Hi {{ user.username }}!</h2>
<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit">Log Out</button>
</form>
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">Log In</a> | <a href="{% url 'signup' %}">Sign Up</a>
{% endif %}
{% endblock %}