Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. For example this is my file form
  2.  
  3.  
  4. <form method="post" enctype="multipart/form-data">
  5. {% if makale.makale_foto %}
  6. <img class="img-fluid rounded" src="{{ makale.makale_foto.url }}" alt="">
  7. {% else %}
  8. <div class="alert alert-danger">Fotoğraf Eklenmemiş</div>
  9. {% endif %}
  10. {% csrf_token %} //this is csrf
  11. {{ form|crispy }}
  12. <input type="submit" class="btn btn-info" style="width:100%" value="Kaydet">
  13. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement