0

I run into some issues with the quoted.html and the buy.html. I suspect the issue is with my index.html but I am not sure why that is the case. For the buy.html page it states that input field shares does not exist in the terminal for this one I am not 100% sure what it means. For the quoted.html: I checked the flask terminal I am not seeing any visible errors for the 28.00 and then I viewed the page after logging in it took me back to the login page I can't access the quote, buy, history, and sell page. I am not getting much access for the buy page after the finance application and not sure where the issue is pointing to.

Index.html

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, width=device-width">

    <!-- http://getbootstrap.com/docs/5.2/ -->
    <link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" rel="stylesheet">
    <script crossorigin="anonymous" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>

    <!-- https://favicon.io/emoji-favicons/money-bag/ -->
    <link href="/static/favicon.ico" rel="icon">

    <link href="/static/styles.css" rel="stylesheet">

    <title>C$50 Finance:
Log In
</head>

<body>

    <nav class="bg-light border navbar navbar-expand-md navbar-light">
        <div class="container-fluid">
            <a class="navbar-brand" href="/"><span class="blue">C</span><span class="red">$</span><span class="yellow">5</span><span class="green">0</span> <span class="red">Finance</span></a>
            <button aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbar" data-toggle="collapse" type="button">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbar">

                    <ul class="navbar-nav ms-auto mt-2">
                        <li class="nav-item"><a class="nav-link" href="/register">Register</a></li>
                        <li class="nav-item"><a class="nav-link" href="/login">Login</a></li>

                    </ul>

            </div>
        </div>
    </nav>



    <main class="container py-5 text-center">

<form action="/login" method="post">
    <div class="mb-3">
        <input autocomplete="off" autofocus class="form-control mx-auto w-auto" name="username" placeholder="Username" type="text">
    </div>
    <div class="mb-3">
        <input class="form-control mx-auto w-auto" name="password" placeholder="Password" type="password">
    </div>
    <button class="btn btn-primary" type="submit">Log In</button>
</form>
    </main>

    <footer class="mb-5 small text-center text-muted">
        Data provided by <a href="https://iexcloud.io/">IEX</a>
    </footer>

</body>

1 Answer 1

0
  • looks like this index.html is a copy of login.html so that's why it always goes back to the login page (or seems to!).

  • buy.html page it states that input field shares does not exist in the terminal

That's a clear and unambiguous message. From the spec:

Require that a user input a number of shares, implemented as a field whose name is shares. Render an apology if the input is not a positive integer.

  • Cannot comment on quote since there's no code (app.py or quote.html) to review.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .