asadlive84

htmlfile

Apr 21st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.40 KB | None | 0 0
  1. {% if user.is_authenticated %}
  2.         <h5>Hi, {{user.name}} leave your comment now</h5>
  3.         <form action="" method="post">
  4.             {% csrf_token %} {{form.as_p}}
  5.        
  6.             <input type="submit" value="Submit comment">
  7.         </form>
  8.         {% else %}
  9.         <p>You're not logged in this site, please  <a href="{% url 'login' %}">log</a> in for comment </p>
  10.         {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment