Commit cda21a30 by Pierre Dulac

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

otherwise log a warning
parent 6f576410
......@@ -98,9 +98,17 @@ INSTALLED_APPS = (
'rest_framework',
'rest_framework.authtoken',
'rest_framework.tests',
)
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/'
......
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