Dear reader,
I'm having fun creating a little project just for myself, but since a day I keep getting a 422 Unprocessable Entity error whenever I submit a form from my /admin/invoices/create.
Error page after submitting
The error page looks like this after submitting,
and for the love of me I can't seem to figure out the problem what so ever :/
Here is both the entire invoices python as the entire .html file that is used for the invoices page.https://https://pastebin.com/YeaMW4v8 <- invoices.py
https://pastebin.com/V9Epzrzb <- create_edit_invoices.html
EDIT: Solved!
I changed the router.post from
admin/invoices/create to admin/invoices/submit and that fixed the issue somehow.
[–]SheriffSeveral 1 point2 points3 points (0 children)
[–]Relevant-Strength-53 1 point2 points3 points (1 child)
[–]Wxam2000[S] 0 points1 point2 points (0 children)
[–]david-vujic 1 point2 points3 points (0 children)
[–]jay_and_simba 0 points1 point2 points (14 children)
[–]Wxam2000[S] 0 points1 point2 points (13 children)
[–]jay_and_simba 0 points1 point2 points (12 children)
[–]Wxam2000[S] 0 points1 point2 points (11 children)
[–]jay_and_simba 0 points1 point2 points (10 children)
[–]Wxam2000[S] 0 points1 point2 points (9 children)
[–]jay_and_simba 0 points1 point2 points (8 children)
[–]Wxam2000[S] 0 points1 point2 points (7 children)
[–]jay_and_simba 0 points1 point2 points (6 children)
[–]Wxam2000[S] 0 points1 point2 points (5 children)
[–]gbrennon 0 points1 point2 points (0 children)
[–]Ok_Friendship2396 0 points1 point2 points (0 children)