]> git.parisson.com Git - django-social-auth.git/commitdiff
Remove duplicate package from the example app and load it from the parent path in...
authorStephen McDonald <steve@jupo.org>
Sat, 24 Dec 2011 20:32:06 +0000 (07:32 +1100)
committerStephen McDonald <steve@jupo.org>
Sat, 24 Dec 2011 20:32:06 +0000 (07:32 +1100)
example/settings.py
example/social_auth [deleted symlink]

index 70cf2ac48ed85ee4b4fd117d45196d4148553397..6fc3b9bf7a19da54a84998871adf7f1d665bda6b 100644 (file)
@@ -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 (symlink)
index fdc701c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../social_auth/
\ No newline at end of file