Ticket #5350: urlresolvers.patch
File urlresolvers.patch, 822 bytes (added by , 17 years ago) |
---|
-
django/core/urlresolvers.py
260 260 url_patterns = property(_get_url_patterns) 261 261 262 262 def _resolve_special(self, view_type): 263 callback = getattr(self.urlconf_module, 'handler%s' % view_type) 263 callback = getattr(self.urlconf_module, 'handler%s' % view_type, None) 264 if not callback: 265 # Lazy import, since urls.defaults imports this file 266 from django.conf.urls import defaults 267 callback=getattr(defaults, 'handler%s' % view_type) 264 268 mod_name, func_name = get_mod_func(callback) 265 269 try: 266 270 return getattr(__import__(mod_name, {}, {}, ['']), func_name), {}