Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if user.is_authenticated %}
- <h5>Hi, {{user.name}} leave your comment now</h5>
- <form action="" method="post">
- {% csrf_token %} {{form.as_p}}
- <input type="submit" value="Submit comment">
- </form>
- {% else %}
- <p>You're not logged in this site, please <a href="{% url 'login' %}">log</a> in for comment </p>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment