Saturday, March 27, 2021

Re: hi mates trouble with ajax 500 error server

On 27/03/2021 21.41, frank galan wrote:
> thanks, here is the server error response
>
> NameError: name 'JsonResponse' is not defined
>

That error message should be fairly obvious. You haven't defined
anything called JsonResponse.

You most likely just need to import the correct module. I don't know
what that would be, but it would probably be from the library you use to
generate JSON responses whatever that might be.

Kind regards,

Kasper Laudrup

--
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/f6eff0e2-5eb2-5225-78ca-5f80d4827ee7%40stacktrace.dk.

No comments:

Post a Comment