we did it bois, we enter in the user id for each one
This commit is contained in:
@ -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">
|
||||
|
Reference in New Issue
Block a user