Hi guys, I want to display user’s timeline in my django app but it’s
not working. It only display a white blank page! I’m using Tweepy.
Below are my codes:

Views.py

import tweepy

def tweetstream(request):
    consumer_key="XXXX"
    consumer_secret="XXX"
    access_token="XXX"
    access_token_secret="XXXX"
    auth=tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_token, access_token_secret)
    api=tweepy.API(auth)
    status=api.user_timeline()
    for status in status:
        if status:
            status.__getstate__()
            return render_to_response('tweet.html',
context_instance=RequestContext(request))

Template:
{% extends "base.html" %}

 {% block content %}

 {% for status in status %}
   {% if status %}
        {{ status.author.screen_name}} {{status.text}}
{{status.source}}

{% endif %}
 {% endfor %}


{% endblock %}

What I’m I missing? How can I make it return user’s timeline?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to