18 lines
410 B
HTML
18 lines
410 B
HTML
![]() |
{% 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 %}
|