How to use Django3.x + heroku + cloudinary

background

Overview

Operation check

blog.html


<a href="{% url 'blog:post_detail' post.id %}">
     <img class="card-img-top" src="{{ post.image.url }}" alt="{{ post.title }}">
</a>
  • No image displayed </ font>

blog.html


<a href="{% url 'blog:post_detail' post.id %}">
     <img class="card-img-top" src="{{ test_model_instance.image.url }}" alt="{{ test_model_instance.image.name }}">
</a>

Recommended Posts