How to pass information using an HTTP redirect (in Django)

后端 未结 11 1030
北恋
北恋 2021-02-01 19:22

I have a view that accepts a form submission and updates a model.

After updating the model, I want to redirect to another page, and I want a message such as \"Field X su

11条回答
  •  春和景丽
    2021-02-01 20:20

    I have read and checked all answers, and it seems to me that the way to go now is using the messaging framework. Some of the replies are fairly old and have probably been the right way at the time of the posting.

提交回复
热议问题