Questions tagged [index.html]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
48 views

Finance - Error with Index

I can't seem to figure out where I've gone wrong with index. I keep running into these two errors: After login, when directing to index - 500: Internal Server Error (raise TypeError("...
0
votes
1answer
29 views

db_stock_info in the for loop is not displaying in index.html. I can't figure out why any help appreciated?

index.html {% extends "layout.html" %} {% block title %} index {% endblock title %} {% block main %} <table> <tr> <th> SYMBOL </th> <th> NAME </th>...
1
vote
1answer
230 views

html and CSS link do not work Homepage Problem

everyone. I am currently working on the CS50 pset5 homepage problem. I have encountered a problem in my code. The code needs to contain at least four different .html pages, and it should be possible ...
0
votes
1answer
32 views

Does CS50 IDE run SSI?

I'm on pset5, trying to make a homepage with multiple HTML files. I want all the files to share the same navigation bar heading, implementing this in a way so that I don't have to copy the same code ...
0
votes
1answer
22 views

jinja not displaying in single statement

I think I'm missing something extremely simple, but I'm trying to display the users name in my index.html, but i'm just getting blank HTML/Jinja: Welcome, <th>{{ user_data.username }} </th&...
0
votes
1answer
20 views

Centered images in Preview within CS50 IDE but not centered once shared and viewed via link

Does anyone have any ideas why images which look centered within CS50 IDE HTML webpage previews are far from centered once they are shared and viewed on the internet. Shouldn't the preview view show ...
0
votes
1answer
82 views

PSET7 using jinja and binding variables to output in to HTML

I'm looking to output my db row info though am getting nothing but a blank page instead. Here is my python code which works: @app.route("/") @login_required def index(): """Show portfolio of stocks""...
0
votes
1answer
324 views

PSET6 Similarities Web Form Errors “Cannot POST /compare” and no CSS

I was able to get compare to work properly via the terminal though the web application keeps throwing "Cannot POST /compare" and index.html doesn't show any CSS. The page shows the layout info but no ...
0
votes
1answer
29 views

JS Dropdown in final project

My final project is a conversion website. I am trying to make a dropdown menu that when you click one of the options in the DD, you are taken to another page. When I put in the following code (from ...
0
votes
0answers
260 views

pset7 buy/sell shares via index

As last task to do for pset7, "personal touch", I'd like to empower the user to buy and sell shares via index without having to type the stock symbol. From here I found interesting to create a form ...
0
votes
1answer
55 views

Does index.html have to be changed at all? It is currently blank

At which point should I be seeing the map when I open my web page. I am at the scripts.js section of the pset and the instructions says to change the coordinates in options to recenter your map. ...
1
vote
1answer
46 views

How to disable a table (portfolio) in index.html?

If there are no records in my portfolio, I do not want to show the table in index.html So, I tried as a parameter to pass a variable empty with value to index.html, where it was checked {% if {{ ...
1
vote
1answer
342 views

How to pre-populate sell() and buy() forms from index - Pset7

I'd like to allow users to buy and sell shares they already own from the index page. I've created a button for this on the index, and I simply want to send the user to the /buy.html or /sell.html page ...
0
votes
1answer
2k views

How to display python list in index.html ? finance - index.html

I need is to display the list below in index.html file. print (stock_info) [{'symbol': 'AAPL', 'name': 'Apple Inc.', 'price': 145.16, 'quantity': 20}, {'symbol': 'AMZN', 'name'...
0
votes
2answers
239 views

pset7, cash on index.html sometimes giving many decimals (eg.4882.139999999999)

Like what the title saying, I didn't format the value to float... Here is my index() code: def index(): # get stock and share information rows = db.execute("SELECT stock, SUM(shares) AS shares FROM '...
0
votes
1answer
2k views

How to iterate through different shares in jinja to create the table in index.html

I'd appreciate some help generating the required table for index.html. My code for the index() route within application.py is below: # call this part A - accessing the data in the "transactions" ...
1
vote
1answer
440 views

pset7 index.html, adding buy/sell button which linked to stock respectively

As the last requirement of the pset, I want to try empower users to buy more shares or sell shares of stocks they already own via index itself, without having to type stocks' symbols manually. I have ...
1
vote
2answers
314 views

CS50 Pset7: rows inside the for loop are not showing up in index.html

I have been trying to implementing my code for Index and index.html. My code for Index seems to work very well, but my index.html isn't. My implementation of index() and index.html are pasted below. ...
0
votes
1answer
102 views

CS50 Pset7: rows inside the for loop aren't showing up in index.html

I have been trying to implementing my code for Index and index.html. My code for Index seems to work very well, but my index.html isn't. The jinja template is pasted below. For some reasons, the table ...
0
votes
1answer
49 views

Pst7 combine SQL similar rows

Right now I have made two tables to store user data and all transactions what users made. Structure of transaction table looks like this: id user symbol price quantity ...
0
votes
2answers
439 views

Pset7 - Finance: Cannot figure out how to loop through values in list/dict in order to display results in rows in html table

Here is my index route for application.py: https://gist.github.com/837a3f19ac680ccf0ee06cfff647fb86 Here is the outline of my index.html file: https://gist.github.com/acf68454e8cd75ae566bec06781d93a5 ...
0
votes
1answer
36 views

pset7 logic flow

while trying to work on pset7, I wondered what the logic flow is. Meaning, you have to send people to index.html after you log them in. But it is not until later that the sequence of working on ...
0
votes
1answer
49 views

pset7 help my code registers the user and then goes to the login page

I need to know why it doesn't go to index.html.. Here's the code: