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}