how to redirect to previous page in django

Do you want to know the details regarding “how to redirect to previous page in django”. If yes, you’re in the correct post.

how to redirect to previous page in django

<form method="POST">
    % csrf_token %
     form 
    <input type="hidden" name="next" value=" request.path ">
    <button type="submit">Let's Go</button>
</form>

Conclusion

I hope this tutorial helps you to know about “how to redirect to previous page in django”. If you have any doubts regarding this article please let us know via the comment section. Share this article with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment