0

Normally, it seems, Django developers create forms where the GET and POST request is handled by the same view. If we POST to a different view however how does one return the errors to the same URL that made the request?

After Googling around, I found surprisingly little on this. On Stack Overflow in fact, I found only a single comment (5th down) in this answer which was well voted for asking the same question but receiving no answer - Proper way to handle multiple forms on one page in Django.

I thought this would be done all over the web with the Django web framework but I'm beginning to question whether the community just considers it a bad idea for whatever reason.

EDIT: I am interested in solutions not involving Ajax

Dávid Molnár
  • 7,524
  • 6
  • 25
  • 43
user1849962
  • 375
  • 1
  • 3
  • 11

0 Answers0