Replies: 2 comments
-
You are using the
In HTTP, using GET to add, remove or change something is considered incorrect. Your Python code recognizes that and only saves the form when the
To send a request with the appropriate method, replace |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually, I fix this a couple of days ago, as I was simply using the wrong view to Post the data: After:
Before
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI all,
I followed several examples from different tutorials, and I can't get why this is not working.
I have an HTML page (see code below), and uses HTMX to add a form from another HTML page:
My form is inside this HTML, and essentially every time you click the button on the first page there are several forms submitted, the main problem is that when I submit the data, it seems like it works but it actually doesn't save the form data.
You usually do this in the Django view, and all the examples I have seen work in this way but not sure if there is anything that has to be added in the HTML code to submit the data
Django Views
Any ideas will be highly appreciated
Beta Was this translation helpful? Give feedback.
All reactions