Migration auf dne neuen Social-Auth Code.

This commit is contained in:
2017-02-18 19:59:27 +01:00
parent f29a427d7a
commit 942aadfeb6
3 changed files with 7 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ PREREQ_APPS = [
'ckeditor',
'ckeditor_uploader',
'easy_thumbnails',
'social.apps.django_app.default',
'social_django',
]
PROJECT_APPS = [
'kasu',
@@ -135,9 +135,9 @@ DEFAULT_FROM_EMAIL = ""
# Login Settings
ACCOUNT_ACTIVATION_DAYS = 5
AUTH_USER_MODEL = 'membership.Membership'
AUTHENTICATION_BACKENDS = ('social.backends.facebook.FacebookOAuth2',
'social.backends.google.GoogleOAuth2',
'social.backends.twitter.TwitterOAuth',
AUTHENTICATION_BACKENDS = ('social_core.backends.facebook.FacebookOAuth2',
'social_core.backends.google.GoogleOAuth2',
'social_core.backends.twitter.TwitterOAuth',
'django.contrib.auth.backends.ModelBackend',)
LOGIN_URL = '/membership/login/'
LOGIN_ERROR_URL = '/membership/login/error/'

View File

@@ -10,7 +10,7 @@ from . import views
urlpatterns = patterns(
'',
url('', include('social.apps.django_app.urls', namespace='social')),
url('', include('social_django.urls', namespace='social')),
url('', include('django.contrib.auth.urls')),
url(r'^register/$',
views.RegisterForm.as_view(),