How to redirect with post data (Django)

If you faced such problem there’s a slight chance that you might need to revise your designs.

This is a restriction of HTTP that POST data cannot go with redirects.

Can you describe what are you trying to accomplish and maybe then we can think about some neat solution.

If you do not want use sessions as Matthew suggested you can pass POST params in GET to the new page (consider some limitations such as security and max length of GET params in query string).

UPDATE to your update:)
It sounds strange to me that you have 2 web apps and those apps use one (am I right?). Anyway consider passing your data from POST in GET to the proper view (in case data is not sensitive of course).

Leave a Comment