Commit cda21a30 by Pierre Dulac

Only add the django-oauth2-provider apps if the module is installed

otherwise log a warning
parent 6f576410
...@@ -98,10 +98,18 @@ INSTALLED_APPS = ( ...@@ -98,10 +98,18 @@ INSTALLED_APPS = (
'rest_framework', 'rest_framework',
'rest_framework.authtoken', 'rest_framework.authtoken',
'rest_framework.tests', 'rest_framework.tests',
'provider',
'provider.oauth2',
) )
try:
import provider
INSTALLED_APPS += (
'provider',
'provider.oauth2',
)
except ImportError, inst:
import logging
logging.warning("django-oauth2-provider is not install, some tests will be skipped")
STATIC_URL = '/static/' STATIC_URL = '/static/'
PASSWORD_HASHERS = ( 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