From: Stephen McDonald Date: Sat, 24 Dec 2011 20:32:06 +0000 (+1100) Subject: Remove duplicate package from the example app and load it from the parent path in... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6e79c45f28fab921c2d23188a6faba86dbc5aa7a;p=django-social-auth.git Remove duplicate package from the example app and load it from the parent path in the settings module. --- 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