There is a problem that when adding a record or when changing it, an error occurs in the admin panel.
page not found
And this happens only with a POST request and the presence in the form input type=file . I want to debug, but I don’t know which piece of code works when adding a record. Maybe someone knows?
Thanks Mikhail Alekseevich. This showed exactly where the error occurs. But I did not understand anything. Can you understand?


Debug=True, lower down, there will be a log. The "piece of code" that is written in your view should be viewed there. - matz