Skip to main content

Questions tagged [web]

The tag has no usage guidance.

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

Html page is displayed well as file, but not on server

Here I tried from brackets IDE live preview it was working completely fine, but now it doesn't, i think i maybe deleted sth from C parition that causes this, i'm searching hard but i don't know what ...
Mazen's user avatar
  • 5
0 votes
1 answer
188 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 ...
Sion Williams's user avatar
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 ...
allemandi's user avatar
0 votes
1 answer
50 views

Week 8 - Finance - Buy - Getting Error Message Missing Shares

I'm trying to get the Buy implementation to work but I keep on getting the error message "Missing Shares" when I log into the cs50 finance site and enter in the symbol and number of shares. ...
Leonidas Smiley's user avatar
0 votes
1 answer
34 views

finance cosntraint syntax error

def buy(): """Buy shares of stock""" if request.method == "GET": return render_template("buy.html") else: if not request....
Varun Beluguli's user avatar
0 votes
1 answer
22 views

Finance sql doubt

I would like to know if there is a way to insert certain set of values replacing the older ones ie without creating duplicates
Varun Beluguli's user avatar
0 votes
1 answer
33 views

Web track finance error sql

def buy(): """Buy shares of stock""" if request.method == "GET": return render_template("buy.html") else: if not request....
Varun Beluguli's user avatar
0 votes
1 answer
29 views

Web track finance error

@app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): """Buy shares of stock""" if request.method == "GET"...
Varun Beluguli's user avatar
0 votes
2 answers
225 views

Finance Register Checking for Duplicate Username Not Working

I've looked at lots of other questions with people who have code for register, and my SQL code is exactly the same as most of them, but when I register, it lets multiple people have the same username. ...
mkg15's user avatar
  • 67
0 votes
1 answer
43 views

Track Web Programming to real Web

I am doing the final project of CS50 and I want to know if I can use my code of the final project and make a real web page with a real adress outside CS50 server... is it possible? Thank you for the ...
santiago correa's user avatar
0 votes
1 answer
312 views

PSET8 Finance Buy

For some reason, my buy function will not work. When I try to "buy" a share of stock, it always goes to internal server error. Here is my code: def buy(): if request.method == "POST&...
leesquared's user avatar
0 votes
1 answer
3k views

The view function did not return a valid response. The function either returned None or ended without a return statement

I can't figure out what is wrong in my code My python code: def buy(): """Buy shares of stock""" if request.method == "GET": render_template("buy....
Luana Nunes's user avatar
0 votes
1 answer
71 views

CS50 Web Track Finance Index not displaying Data

EDIT: I fixed the issues with the Data but now the webpage looks really bland (default text, font, etc) and does not match the format of the other pages. Am I missing something in my HTML? {% extends &...
joemama12345's user avatar
0 votes
1 answer
17 views

All sequel Queries getting Implemented, ignoring the conditional statements

In the function buy when I am purchasing some stock, every query that i have mentioned on different conditions are getting implemented, I am unable to guess as why It is happening. Here is my code: ...
noob_dev17's user avatar
0 votes
1 answer
33 views

How to reduce paragraph width without moving paragraph to the side?

I am doing the homepage part of the web track. However, I am currently using text-align: center; but my text stretches across the whole screen. I tried to reduce the width, but that makes the text ...
TC5001's user avatar
  • 2
0 votes
1 answer
806 views

Problem Set 8 / Web Track - Finance (Redirect Error)

My functions seens to work fine, but when i have that redirect the user to the homepage (redirect("/")) the application crash and show the error message: 500 internal server error and I don't know if ...
Leonardo Manzini's user avatar
0 votes
1 answer
242 views

Problem Set 8 / Web Track - Finance (RuntimeError: UNIQUE constraint failed)

y'all. My register function seems to work just fine when inputting new and different usernames. However, when I tested it for the 403 error (ie the one which checks if there is an already existing ...
Sorphil's user avatar
  • 27
0 votes
1 answer
30 views

PSET Tracks Flask and JS

I'm stuck with the course track Flask. I write same code as the teacher but something fail at the end with JavaScrip. {% extends "layout.html" %} {% block body %} <form action="/add" method="...
saquiel's user avatar
  • 153
0 votes
0 answers
55 views

Textbook for understanding session in flask or in general web development?

Is there any good text book available which can explain the concept of session in web development ?
Prashant Singh's user avatar
0 votes
1 answer
510 views

Why can I not open my website in HTML?

This is just basic HTML. The website is just a poem by Stevie Wonder. Anyways, in the CS50 IDE I type in, "open hello.html" and there is nothing that happens! I thought this opens the website so you ...
David Mark Serrano's user avatar
0 votes
1 answer
289 views

Similarities Pset6 - submit button not working

Quick question. My code passes check50 and submit50 but for whatever reason I can't seem to get the actual program to work i.e. when I click the compare button on my form nothing happens. Here is my ...
Arun Narayanan's user avatar
1 vote
1 answer
151 views

PSET7: web server permissions problem

Just started pset7 and can't get the web server to load. I've read about this all over the place but can't get anything to work as of yet. Now I've resorted to wiping the whole workspace clean (after ...
jwld's user avatar
  • 15
0 votes
1 answer
136 views

CS50 pset6 check50 errors

I have completed my first draft of pset6 web server and I have used valgrind to check my program for memory leaks of which there seem to be none. However, when I ran my server.c file through check50 I ...
Mark Edwards's user avatar
0 votes
3 answers
622 views

Connection to the server problems

I have just started the pset6 web server assignment and I am having a couple of problems even before I have begun. When I read through the assignment instructions, for pset6, and I have executed ~...
Mark Edwards's user avatar
0 votes
1 answer
172 views

PSET6 Web Server: Static contents work while dynamic leads to a seg fault

I've browsed the questions asked, many of them helped to fix my code but I'm facing a last challenge and I've no idea how to pass it. Every test made with "cat.jpg", "cat.html" or "hello.html" works ...
DFATPUNK's user avatar
  • 155
0 votes
1 answer
1k views

Pset 6 Web Server

This isn't a specific programming question, but having watched and re-watched edx lectures in weeks 6, 7 and 8, I am still completely overwhelmed and confused by pset6 "web server". I've read through ...
Ivan Chan's user avatar