Skip to content
Advertisement

Why doesn’t request.GET.get(“edit”) work in my code?

I’m trying to make a view in Django, in where if the edit button is pressed on that page it is passed on to another view as a session.

JavaScript

Here is my page.html file

JavaScript

This is the view where I want to use the session

JavaScript

Advertisement

Answer

You can specify a key-value pair by making use of the <button> tag, so then the form should look like:

JavaScript
Advertisement