my views.py :
def responded(request): reply_twt = Reply_twt.objects.all() for tweet in reply_twt: rply_tweet = home_timeline.api.get_status(tweet.tweetid) return render (request, 'analytics/responded.html', {'rply_tweet': rply_tweet})
my html:
{% extends 'analytics/header.html' %}
{% block body %}
{% for tweet in rply_tweet %}
{{tweet.text}}
{% endfor %}
{% endblock %}
i need to print multiple tweet.text in for loop and even if i send data to html page it is only data on single tweet. how to resolve this . Thank You in advance
rply_tweetis not a list of twwets, it will have the latest tweet, since you constantly overwrite it.rply_tweet = [home_timeline.api.get_status(tweet.tweetid) for tweet in reply_twt]