diff options
author | hardythe1 | 2015-06-23 17:41:09 +0530 |
---|---|---|
committer | hardythe1 | 2015-06-23 17:41:09 +0530 |
commit | 0db60e6e41954338833589d12111c3f7cf294fd0 (patch) | |
tree | d2a63a7f98befa530e27d5a351deca4eef468116 /scipy2015/settings.py | |
parent | f678c4cebeb6d200a88d290fa64289025bd5294b (diff) | |
download | SciPy2015-0db60e6e41954338833589d12111c3f7cf294fd0.tar.gz SciPy2015-0db60e6e41954338833589d12111c3f7cf294fd0.tar.bz2 SciPy2015-0db60e6e41954338833589d12111c3f7cf294fd0.zip |
add cfp & its reated functionalities
Diffstat (limited to 'scipy2015/settings.py')
-rw-r--r-- | scipy2015/settings.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scipy2015/settings.py b/scipy2015/settings.py index 0ae22d3..768498a 100644 --- a/scipy2015/settings.py +++ b/scipy2015/settings.py @@ -37,6 +37,7 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', 'website', + 'social.apps.django_app.default', ) MIDDLEWARE_CLASSES = ( @@ -48,6 +49,25 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) +TEMPLATE_CONTEXT_PROCESSORS = ( + 'django.contrib.auth.context_processors.auth', + 'django.core.context_processors.debug', + 'django.core.context_processors.i18n', + 'django.core.context_processors.media', + 'django.core.context_processors.static', + 'django.core.context_processors.tz', + 'django.contrib.messages.context_processors.messages', + 'social.apps.django_app.context_processors.backends', + 'social.apps.django_app.context_processors.login_redirect', +) + +AUTHENTICATION_BACKENDS = ( + 'social.backends.facebook.FacebookOAuth2', + 'social.backends.google.GoogleOAuth2', + 'social.backends.twitter.TwitterOAuth', + 'django.contrib.auth.backends.ModelBackend', +) + TEMPLATE_DIRS = ( os.path.join(BASE_DIR, '../website/templates'), ) @@ -74,6 +94,9 @@ DATABASES = { } } +SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '435463679202-ec0cuk2jbnhactnad44fuodoftl6rjbp.apps.googleusercontent.com' +SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'vdeG2MFpC0fgIZqDUjqX1ncK' + # Internationalization # https://docs.djangoproject.com/en/1.6/topics/i18n/ |