Ticket #6537: urlresolvers.diff
File urlresolvers.diff, 866 bytes (added by , 16 years ago) |
---|
-
django/core/urlresolvers.py
247 247 try: 248 248 return self._urlconf_module 249 249 except AttributeError: 250 try: 251 self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) 252 except Exception, e: 253 # Either an invalid urlconf_name, such as "foo.bar.", or some 254 # kind of problem during the actual import. 255 raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) 250 self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) 256 251 return self._urlconf_module 257 252 urlconf_module = property(_get_urlconf_module) 258 253