Ticket #10802: core-urlresolvers.patch
File core-urlresolvers.patch, 938 bytes (added by , 16 years ago) |
---|
-
django/core/urlresolvers.py
127 127 def _get_callback(self): 128 128 if self._callback is not None: 129 129 return self._callback 130 try: 131 self._callback = get_callable(self._callback_str) 132 except ImportError, e: 133 mod_name, _ = get_mod_func(self._callback_str) 134 raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e)) 135 except AttributeError, e: 136 mod_name, func_name = get_mod_func(self._callback_str) 137 raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) 130 self._callback = get_callable(self._callback_str) 138 131 return self._callback 139 132 callback = property(_get_callback) 140 133