Home:ALL Converter>Django Tweepy File

Django Tweepy File

Ask Time:2012-03-26T06:55:54         Author:picomon

Json Formatter

I’m confused about this; instead of writing tweepy codes like-

auth=tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api=tweepy.API(auth)

In a new python file (IDLE). Can’t we write it in our views.py in django? Or we should create a new file in django app for the codes?

Author:picomon,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/9864810/django-tweepy-file
yy