diff options
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 07fdddce..6efe6762 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -426,3 +426,18 @@ try: import defusedxml.ElementTree as etree except ImportError: etree = None + +# OAuth is optional +try: + # Note: The `oauth2` package actually provides oauth1.0a support. Urg. + import oauth2 as oauth +except ImportError: + oauth = None + +# OAuth is optional +try: + import oauth_provider + from oauth_provider.store import store as oauth_provider_store +except ImportError: + oauth_provider = None + oauth_provider_store = None |
