Questions tagged [index.html]
The index.html tag has no usage guidance.
28
questions
0
votes
1
answer
22
views
HTML error duplicate class
I was checking my html for the "homepage" problem HERE, and i get this error
How can i solve this issue?
Thanks
0
votes
1
answer
580
views
PSET 9 Finance index.html issue with displaying table results with html
I'm currently on CS50 PSET 9 Finance and stuck on the index.html portion of the assignment.
This is my code from assignment.py:
@app.route("/")
@login_required
def index():
stocks = db....
0
votes
0
answers
36
views
Pset8 Finance won't pass values to index.html
I have tried like every combination and there is no error but Jinja won't pass any value to my index.html.
Running the SQL on the DB gives the correct answer!
And I See a Table with head and foot etc ...
0
votes
1
answer
170
views
Blocked on C$50 Finance suggested personal touch feature - adapting index page to enable transactions in situ
Dug into the docs and trawled all the usual online sources but starting to suspect that I'm trying to solve this in a way that's impossible!
This is how I've edited the index page to allow user input ...
0
votes
1
answer
51
views
PSET8 Web Finance - Index/Portfolio - Why do my for loop variables not pull over to Portfolio.html?
I have the below code for my application:
#valid stock row queries
valid_stocks_rows = db.execute("SELECT symbol, SUM(shares) as sum_total FROM ledger WHERE user_id=:user_id GROUP BY symbol ...
0
votes
1
answer
229
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
1
answer
32
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
1
answer
569
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
1
answer
42
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
1
answer
35
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
1
answer
24
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
1
answer
92
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
1
answer
343
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
1
answer
40
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
0
answers
342
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
1
answer
57
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
1
answer
49
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
1
answer
432
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 ...
1
vote
1
answer
3k
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
2
answers
352
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
1
answer
3k
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
1
answer
700
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
2
answers
370
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
1
answer
105
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
1
answer
59
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
2
answers
596
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
1
answer
37
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
1
answer
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: