mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 02:23:44 +03:00
Fix urlpatterns format in docs
This commit is contained in:
parent
7e708d9ca7
commit
42d039b473
|
@ -26,10 +26,10 @@ Installation
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = [
|
||||||
...,
|
...,
|
||||||
url(r'^rest-auth/', include('rest_auth.urls'))
|
url(r'^rest-auth/', include('rest_auth.urls'))
|
||||||
)
|
]
|
||||||
|
|
||||||
4. Migrate your database
|
4. Migrate your database
|
||||||
|
|
||||||
|
@ -66,11 +66,11 @@ Registration (optional)
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = [
|
||||||
...,
|
...,
|
||||||
url(r'^rest-auth/', include('rest_auth.urls')),
|
url(r'^rest-auth/', include('rest_auth.urls')),
|
||||||
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
|
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
|
||||||
)
|
]
|
||||||
|
|
||||||
|
|
||||||
Social Authentication (optional)
|
Social Authentication (optional)
|
||||||
|
@ -120,10 +120,10 @@ Facebook
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
urlpatterns += patterns('',
|
urlpatterns += [
|
||||||
...,
|
...,
|
||||||
url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='fb_login')
|
url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='fb_login')
|
||||||
)
|
]
|
||||||
|
|
||||||
|
|
||||||
Twitter
|
Twitter
|
||||||
|
@ -147,10 +147,10 @@ If you are using Twitter for your social authentication, it is a bit different s
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
urlpatterns += patterns('',
|
urlpatterns += [
|
||||||
...,
|
...,
|
||||||
url(r'^rest-auth/twitter/$', TwitterLogin.as_view(), name='twitter_login')
|
url(r'^rest-auth/twitter/$', TwitterLogin.as_view(), name='twitter_login')
|
||||||
)
|
]
|
||||||
.. 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.
|
.. 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.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user