This commit is contained in:
Yamozha
2021-02-09 17:41:06 +02:00
parent 63168a485c
commit d1280445f4
29 changed files with 99 additions and 2 deletions

View File

@ -0,0 +1,17 @@
{% extends 'base.html' %}
{% block title %} Home {% endblock %}
{% block content %}
{% if user.is_authenticated %}
Hi {{ user.username }}!<br>
<form action="" method="POST">{% csrf_token %}
<input type="file" name="image" id="image">
<button type="submit"> Submit </button>
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">Log In</a>
{% endif %}
{% endblock %}