{"id":18965301,"url":"https://github.com/ryanmcgrath/twython-django","last_synced_at":"2025-04-15T21:23:22.075Z","repository":{"id":62585841,"uuid":"1058696","full_name":"ryanmcgrath/twython-django","owner":"ryanmcgrath","description":"An example Django application to showcase how to use OAuth with Twitter in Django using Twython.","archived":false,"fork":false,"pushed_at":"2020-09-06T15:15:58.000Z","size":230,"stargazers_count":72,"open_issues_count":5,"forks_count":39,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T01:24:11.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanmcgrath.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-07T07:15:10.000Z","updated_at":"2025-01-13T17:29:59.000Z","dependencies_parsed_at":"2022-11-03T22:06:34.191Z","dependency_job_id":null,"html_url":"https://github.com/ryanmcgrath/twython-django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcgrath%2Ftwython-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcgrath%2Ftwython-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcgrath%2Ftwython-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcgrath%2Ftwython-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanmcgrath","download_url":"https://codeload.github.com/ryanmcgrath/twython-django/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155116,"owners_count":21221541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:28:46.830Z","updated_at":"2025-04-15T21:23:22.053Z","avatar_url":"https://github.com/ryanmcgrath.png","language":"Python","readme":"Twython-Django\n==============\n\n    (An example Django Python Twitter OAuth Application, using Twython)\n\nOAuth 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.\n\nTwython 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.\n\nInstallation\n------------\n\nInstall `twython-django` via `pip \u003chttp://www.pip-installer.org/\u003e`_\n\n.. code-block:: bash\n\n    $ pip install twython-django\n\nor, with `easy_install \u003chttp://pypi.python.org/pypi/setuptools\u003e`_\n\n.. code-block:: bash\n\n    $ easy_install twython-django\n\nBut, hey... `that's up to you \u003chttp://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install\u003e`_.\n\nOr, if you want the code that is currently on GitHub\n\n.. code-block:: bash\n\n    git clone git://github.com/ryanmcgrath/twython-django.git\n    cd twython\n    python setup.py install\n\nGetting Started\n---------------\n\nAdd ``twython_django_oauth`` to your ``INSTALLED_APPS`` in your ``settings.py`` file.\n\nIf you wish to use the example template, feel free to copy that over as well.\n\nUpdate urls\n^^^^^^^^^^^\n\nSpecify the following urlconf in your root urls.py:\n\n.. code-block:: python\n\n    (r'^your_url_extension/', include('twython_django_oauth.urls')),\n\nModify settings.py\n^^^^^^^^^^^^^^^^^^\n\n    Add the following settings to your settings.py\n\n.. code-block:: python\n    \n    TWITTER_KEY = 'your_key'\n    TWITTER_SECRET = 'your_secret'\n\n    LOGIN_URL='/your_url_extension/login'\n    LOGOUT_URL='/your_url_extension/logout'\n    LOGIN_REDIRECT_URL='/'\n    LOGOUT_REDIRECT_URL='/'\n\nNeed Twython Help?\n------------------\n\nIf 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):\n\nhttps://github.com/ryanmcgrath/twython\n\nQuestions, Comments, etc?\n-------------------------\n\nMy 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 ryan@venodesigns.net.\n\nOr contact me on Twitter:\n\n- `@ryanmcgrath \u003chttps://twitter.com/ryanmcgrath\u003e`_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanmcgrath%2Ftwython-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanmcgrath%2Ftwython-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanmcgrath%2Ftwython-django/lists"}