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}
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a4eb1cbe-c111-49d7-9f5d-920d3b13ab85n%40googlegroups.com.
No comments:
Post a Comment