html - Django Redirect followed by database lookup - Stack Overflow

admin2025-04-17  3

I have an authenticated user that is signed into a webpage Page1.html on this page I want to create redirect the user to another page that matches a particular property that the user has in their user role.

I managed to get the part working that redirects the user to that webpage, but I know I am going to be faced with having many users so it will take a while for searching each user that is why I want the second redirect to occur on the second html page.

My thoughts are that I use the manipulation of the post to the redirect of the first page Page1.html, and have Page1.html have a please wait till redirected to the final page that they will be using.

I was reading this question but it did not really answer my question:

Django - show loading message during long processing

Something like this which I obtained from this question but in Django How to redirect one HTML page to another on load:

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=;>
        <script type="text/javascript">
            window.location.href = ";
        </script>
        <title>Page Redirection</title>
    </head>
    <body>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow this <a href=''>link to example</a>.
    </body>
</html>
转载请注明原文地址:http://anycun.com/QandA/1744887609a89034.html