ERRORS: ?: (urls.E007) The custom handler500 view in Django 3.0.7

46 views
Skip to first unread message

patelsa...@gmail.com

unread,
Nov 19, 2020, 8:51:55 AM11/19/20
to Django users
Hello All,
I have made a custom 500 error handler function

@api_view(['GET', 'POST', 'PUT', 'DELETE'])
def error500(request, **kwargs):
   // body
return server_error(request)

That is working fine in Django 2.1.7 but not working in Django 3.0.7. 
Getting an error:

django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS:
?: (urls.E007) The custom handler500 view 'appName.errors.WrappedAPIView' does not take the correct number of arguments (request).
System check identified 1 issue (0 silenced).

Is there anything I did wrong? Please give me direction.

Thanks
{Name: Sandeep}



Reply all
Reply to author
Forward
0 new messages