I pass a variable to the template that I call username. It contains the username of the instagram user. When I try to do this for example :
<p>{{ username }}</p>. It works perfectly. It's displaying the good username.
But when I use the tag {% instagram_user_recent_media username %}, it takes username as a string. So the app search on Instagram with the username "username". Obviously it don't find anything. I also tried to do that : {% instagram_user_recent_media {{ username }} %}
As @Abdullahabid3691 made me notice, the tag {% instagram_user_recent_media %} only accepts raw strings. It would make more sense to use a context variable.
I pass a variable to the template that I call username. It contains the username of the instagram user. When I try to do this for example :
<p>{{ username }}</p>
. It works perfectly. It's displaying the good username.But when I use the tag
{% instagram_user_recent_media username %}
, it takes username as a string. So the app search on Instagram with the username "username". Obviously it don't find anything. I also tried to do that :{% instagram_user_recent_media {{ username }} %}
Originally posted by @Abdullahabid3691 in https://github.com/marcopompili/django-instagram/issues/18#issuecomment-538883881
As @Abdullahabid3691 made me notice, the tag
{% instagram_user_recent_media %}
only accepts raw strings. It would make more sense to use a context variable.