Commit a4304458 by swistakm

runtest.settings fixed if django-oauth-plus or oauth2 are not installed

oauth_provider can be added to INSTALLED_APPS only if these packages are installed
parent d84c2cf2
......@@ -98,10 +98,18 @@ INSTALLED_APPS = (
'rest_framework',
'rest_framework.authtoken',
'rest_framework.tests',
'oauth_provider',
)
# OAuth is optional and won't work if there is no oauth_provider & oauth2
try:
import oauth_provider
import oauth2
except ImportError:
pass
else:
INSTALLED_APPS += ('oauth_provider',)
STATIC_URL = '/static/'
PASSWORD_HASHERS = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment