mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #10802 -- Handle ImportErrors and AttributeErrors gracefully when raised by the URL resolver system during startup. Many thanks, IonelMaries and Bas Peschier.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -16,6 +16,11 @@ def absolute_kwargs_view(request, arg1=1, arg2=2):
|
||||
def defaults_view(request, arg1, arg2):
|
||||
pass
|
||||
|
||||
def erroneous_view(request):
|
||||
import non_existent
|
||||
|
||||
uncallable = "Can I be a view? Pleeeease?"
|
||||
|
||||
class ViewClass(object):
|
||||
def __call__(self, request, *args, **kwargs):
|
||||
return HttpResponse('')
|
||||
|
||||
Reference in New Issue
Block a user