marcopompili / django-instagram

Instagram application for Django.
BSD 3-Clause "New" or "Revised" License
76 stars 27 forks source link

plugin doesn't work #10

Closed liho26 closed 6 years ago

liho26 commented 6 years ago

Hi Marco, I following your instructions. All dependies installed. DB synchronized. I copied and pasted code from "Usage" section. And I getting error: Invalid block tag on line 5: 'instagram_user_recent_media'. Did you forget to register or load this tag? What should I do now?

dimkoug commented 6 years ago

in your template you have to add

{% load instagram_client %}

{% instagram_user_recent_media  instagram_user_account  %}

and then

    <div class="row">
      {% for media in recent_media %}
      <div class="col instagram">
        <a href="https://www.instagram.com/p/{{ media.code }}" target="_blank" ><img src="{{ media.thumbnail_src }}" /></a>
      </div>
      {% endfor %}
    </div>