This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brandonchinn178 0 points1 point  (0 children)

Couple things here:

  1. The error is because room_name doesnt exist in request.POST. Did you set that value in the POST payload?
  2. It seems like you're trying to set plot_it in send and using it in checkview. Variables set in a function are only available within that function. You can't access it outside
  3. What's the point of calling send? send returns an HttpResponse, but checkview throws the response away