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,21 @@
{% extends 'base.html' %}
{% block title %} Home {% endblock %}
{% block content %}
{% if user.is_authenticated %}
Hi {{ user.username }}!<br>
<form action="" method="POST">{% csrf_token %}
<label for="choice">What are we gonna upload today?</label>
<select name="choices" id="choices">
<option value="image">Picture</option>
<option value="video">Video</option>
</select>
<button type="submit"> Submit </button>
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">Log In</a>
{% endif %}
{% endblock %}