we did it bois, we enter in the user id for each one

This commit is contained in:
Yamozha
2021-02-18 00:31:54 +02:00
parent 322047b51b
commit a62ccb389d
35 changed files with 48 additions and 12 deletions

View File

@ -4,13 +4,13 @@
{% block content %}
{% if user.is_authenticated %}
Hi {{ user.username }}!<br>
Hi {{ user.username }} {{ user.id }}!<br>
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Upload</button>
</form>
{% if img_obj %}
<h3>Succesfully uploaded : {{img_obj.title}}</h3>
<img src="{{ img_obj.image.url}}" alt="connect" style="max-height:300px">