Skip to content

Commit 42d039b

Browse files
committed
Fix urlpatterns format in docs
1 parent 7e708d9 commit 42d039b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/installation.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Installation
2626

2727
.. code-block:: python
2828
29-
urlpatterns = patterns('',
29+
urlpatterns = [
3030
...,
3131
url(r'^rest-auth/', include('rest_auth.urls'))
32-
)
32+
]
3333
3434
4. Migrate your database
3535

@@ -66,11 +66,11 @@ Registration (optional)
6666

6767
.. code-block:: python
6868
69-
urlpatterns = patterns('',
69+
urlpatterns = [
7070
...,
7171
url(r'^rest-auth/', include('rest_auth.urls')),
7272
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
73-
)
73+
]
7474
7575
7676
Social Authentication (optional)
@@ -120,10 +120,10 @@ Facebook
120120

121121
.. code-block:: python
122122
123-
urlpatterns += patterns('',
123+
urlpatterns += [
124124
...,
125125
url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='fb_login')
126-
)
126+
]
127127
128128
129129
Twitter
@@ -147,10 +147,10 @@ If you are using Twitter for your social authentication, it is a bit different s
147147

148148
.. code-block:: python
149149
150-
urlpatterns += patterns('',
150+
urlpatterns += [
151151
...,
152152
url(r'^rest-auth/twitter/$', TwitterLogin.as_view(), name='twitter_login')
153-
)
153+
]
154154
.. 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.
155155

156156

0 commit comments

Comments
 (0)