Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For example this is my file form
- <form method="post" enctype="multipart/form-data">
- {% if makale.makale_foto %}
- <img class="img-fluid rounded" src="{{ makale.makale_foto.url }}" alt="">
- {% else %}
- <div class="alert alert-danger">Fotoğraf Eklenmemiş</div>
- {% endif %}
- {% csrf_token %} //this is csrf
- {{ form|crispy }}
- <input type="submit" class="btn btn-info" style="width:100%" value="Kaydet">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement