aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/settings.py
diff options
context:
space:
mode:
authorMjumbe Wawatu Poe2012-09-07 17:05:21 -0400
committerMjumbe Wawatu Poe2012-09-07 17:05:21 -0400
commit7d9125bcb69950e54bb9c2ca61f59403c1018178 (patch)
treebb020483d1eeffdbbfa3fa0ab2682c99142c2e3e /djangorestframework/settings.py
parent72bdd0fcec7faa32d7f24e0698736f9433b56f3f (diff)
downloaddjango-rest-framework-7d9125bcb69950e54bb9c2ca61f59403c1018178.tar.bz2
Fix Django 1.3 compatibility
Diffstat (limited to 'djangorestframework/settings.py')
-rw-r--r--djangorestframework/settings.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/djangorestframework/settings.py b/djangorestframework/settings.py
index 8bb03555..e5181f4b 100644
--- a/djangorestframework/settings.py
+++ b/djangorestframework/settings.py
@@ -88,7 +88,10 @@ def import_from_string(val, setting):
module_path, class_name = '.'.join(parts[:-1]), parts[-1]
module = importlib.import_module(module_path)
return getattr(module, class_name)
- except:
+ except Exception, e:
+ import traceback
+ tb = traceback.format_exc()
+ import pdb; pdb.set_trace()
msg = "Could not import '%s' for API setting '%s'" % (val, setting)
raise ImportError(msg)