From 6e79c45f28fab921c2d23188a6faba86dbc5aa7a Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Sun, 25 Dec 2011 07:32:06 +1100 Subject: [PATCH] Remove duplicate package from the example app and load it from the parent path in the settings module. --- example/settings.py | 8 ++++++-- example/social_auth | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) delete mode 120000 example/social_auth diff --git a/example/settings.py b/example/settings.py index 70cf2ac..6fc3b9b 100644 --- a/example/settings.py +++ b/example/settings.py @@ -1,5 +1,11 @@ from os.path import abspath, dirname, basename, join +try: + import social_auth +except ImportError: + import sys + sys.path.insert(0, "..") + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -84,8 +90,6 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'social_auth.context_processors.social_auth_by_type_backends', ) -#SOCIAL_AUTH_ENABLED_BACKENDS = ('google', 'google-oauth', 'facebook') - LOGIN_REDIRECT_URL = '/' try: diff --git a/example/social_auth b/example/social_auth deleted file mode 120000 index fdc701c..0000000 --- a/example/social_auth +++ /dev/null @@ -1 +0,0 @@ -../social_auth/ \ No newline at end of file -- 2.39.5