Changeset 1376
- Timestamp:
- 11/23/05 15:44:48 (2 years ago)
- Files:
-
- django/trunk/django/core/urlresolvers.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/urlresolvers.py
r719 r1376 8 8 """ 9 9 10 from django.core.exceptions import Http404, ViewDoesNotExist10 from django.core.exceptions import Http404, ImproperlyConfigured, ViewDoesNotExist 11 11 import re 12 12 … … 75 75 return self._urlconf_module 76 76 except AttributeError: 77 self._urlconf_module = __import__(self.urlconf_name, '', '', ['']) 77 try: 78 self._urlconf_module = __import__(self.urlconf_name, '', '', ['']) 79 except ValueError, e: 80 # Invalid urlconf_name, such as "foo.bar." (note trailing period) 81 raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) 78 82 return self._urlconf_module 79 83 urlconf_module = property(_get_urlconf_module)
