Git Product home page Git Product logo

twython-django's Introduction

Twython-Django

(An example Django Python Twitter OAuth Application, using Twython)

OAuth is an annoying specification to work with. Twitter has an awesome and somewhat unique real time data stream, though, and it'd be a shame to miss out on that stuff because of the warts of a specification.

Twython supports OAuth authentication with Twitter now, and this is a sample Django application to get people up and running (fairly) instantly with Twitter OAuth in Django. Enjoy.

Installation

Install twython-django via pip

$ pip install twython-django

or, with easy_install

$ easy_install twython-django

But, hey... that's up to you.

Or, if you want the code that is currently on GitHub

git clone git://github.com/ryanmcgrath/twython-django.git
cd twython
python setup.py install

Getting Started

Add twython_django_oauth to your INSTALLED_APPS in your settings.py file.

If you wish to use the example template, feel free to copy that over as well.

Update urls

Specify the following urlconf in your root urls.py:

(r'^your_url_extension/', include('twython_django_oauth.urls')),

Modify settings.py

Add the following settings to your settings.py
TWITTER_KEY = 'your_key'
TWITTER_SECRET = 'your_secret'

LOGIN_URL='/your_url_extension/login'
LOGOUT_URL='/your_url_extension/logout'
LOGIN_REDIRECT_URL='/'
LOGOUT_REDIRECT_URL='/'

Need Twython Help?

If you need help with the Twython library itself, check out the project on Github. It's all pretty self contained (twython/endpoints.py contains just about every function definition you'll need):

https://github.com/ryanmcgrath/twython

Questions, Comments, etc?

My hope is that twython-django is so simple that you'd never have to ask any questions, but if you feel the need to contact me for this (or other) reasons, you can hit me up at [email protected].

Or contact me on Twitter:

twython-django's People

Contributors

arvinja avatar avsd avatar javierder avatar karthikbgl avatar michaelhelmick avatar trik avatar zandeez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.