Skip to content

Commit 680bb56

Browse files
committed
Clean up demo codebase
1 parent 6ace9de commit 680bb56

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

demo/demo/settings.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
TEMPLATE_CONTEXT_PROCESSORS = (
3030
'django.contrib.auth.context_processors.auth',
3131
"django.core.context_processors.request",
32-
"allauth.account.context_processors.account",
33-
"allauth.socialaccount.context_processors.socialaccount",
32+
33+
# Disabling due to alluth>=0.21.0 changes
34+
# "allauth.account.context_processors.account",
35+
# "allauth.socialaccount.context_processors.socialaccount",
3436
)
3537

3638
# Application definition
@@ -51,6 +53,8 @@
5153
'allauth',
5254
'allauth.account',
5355
'rest_auth.registration',
56+
'allauth.socialaccount',
57+
'allauth.socialaccount.providers.facebook',
5458
)
5559

5660
MIDDLEWARE_CLASSES = (

demo/requirements.pip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django>=1.5.0
1+
django>=1.7.0
22
django-rest-auth==0.5.0
3-
django-allauth==0.19.1
3+
django-allauth==0.24.1
44
six==1.9.0

docs/installation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ Using ``django-allauth``, ``django-rest-auth`` provides helpful class for creati
8787
'allauth.socialaccount.providers.facebook',
8888
)
8989
90-
2. Add ``allauth.socialaccount.context_processors.socialaccount`` to TEMPLATE_CONTEXT_PROCESSORS in django settings
90+
2. Add Social Application in django admin panel
9191

92-
3. Add Social Application in django admin panel
93-
94-
4. Create new view as a subclass of ``rest_auth.registration.views.SocialLoginView`` with ``FacebookOAuth2Adapter`` adapter as an attribute:
92+
3. Create new view as a subclass of ``rest_auth.registration.views.SocialLoginView`` with ``FacebookOAuth2Adapter`` adapter as an attribute:
9593

9694
.. code-block:: python
9795
@@ -101,11 +99,13 @@ Using ``django-allauth``, ``django-rest-auth`` provides helpful class for creati
10199
class FacebookLogin(SocialLoginView):
102100
adapter_class = FacebookOAuth2Adapter
103101
104-
5. Create url for FacebookLogin view:
102+
4. Create url for FacebookLogin view:
105103

106104
.. code-block:: python
107105
108106
urlpatterns += pattern('',
109107
...,
110108
url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='fb_login')
111109
)
110+
111+
.. 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)