Created very basic initial login / logout functionality. Absolutely rudimentary templates included.

This commit is contained in:
2020-07-29 00:15:12 +02:00
parent a95b90896e
commit 8e25d5dff2
7 changed files with 63 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
{% extends 'global.html'%}
{% load static %}
# {% block title %}Start{% endblock %}
{% block maincontent %}
{% if user.is_authenticated %}
Hi {{ user.username }}!
<p><a href="{% url 'logout' %}">logout</a></p>
{% else %}
<p>Du bist nicht eingeloggt.</p>
<a href="{% url 'login' %}">login</a> |
<a href="{% url 'signup' %}">signup</a>
{% endif %}
{% endblock maincontent %}