diff options
| author | Tom Christie | 2012-09-07 22:40:05 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-09-07 22:40:05 -0700 |
| commit | 274420c658b406ba27c58c4a66f4c8261ce91b4f (patch) | |
| tree | 67f537d84bdb46f3998fa4f25fb0e365fd531041 /djangorestframework/settings.py | |
| parent | 8f119a8c34c1ebb3cf82152aa7900d316f64c0d8 (diff) | |
| parent | 9c007a6197ca5125bed774cf3089de7759e755d1 (diff) | |
| download | django-rest-framework-274420c658b406ba27c58c4a66f4c8261ce91b4f.tar.bz2 | |
Merge pull request #251 from mjumbewu/1.3-support
Fix Django 1.3 compatibility
Diffstat (limited to 'djangorestframework/settings.py')
| -rw-r--r-- | djangorestframework/settings.py | 5 |
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) |
