Skip to content

Commit ee9e848

Browse files
committed
URL for twitter login added.
1 parent 8f05f20 commit ee9e848

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/installation.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,12 @@ Using ``django-allauth``, ``django-rest-auth`` provides helpful class for creati
126126
serializer_class = TwitterLoginSerializer
127127
adapter_class = TwitterOAuthAdapter
128128
129+
7. Create url for TwitterLogin view:
130+
131+
.. code-block:: python
132+
133+
urlpatterns += pattern('',
134+
...,
135+
url(r'^rest-auth/twitter/$', TwitterLogin.as_view(), name='twitter_login')
136+
)
129137
.. note:: Starting from v0.21.0, django-allauth has dropped support for context processors. Check out http://django-allauth.readthedocs.org/en/latest/changelog.html#from-0-21-0 for more details.

0 commit comments

Comments
 (0)