Questions tagged [web]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Calling a function on POST

I am doing Project 1 for CS50 Web. I have successfully managed to implement all search functions, but now I want to be able to call this search function from any page, up to now it was hard-coded to ...
0
votes
1answer
31 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 ...
0
votes
0answers
12 views

How does the server know if the client has received the data completely?

As i've understood, the client first enters a domain name and the DNS returns it an IP address where the client sends his request and gets a response from the server. Now while sending it back, the ...
0
votes
1answer
61 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
1answer
43 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
1answer
36 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. ...
0
votes
1answer
27 views

finance cosntraint syntax error

def buy(): """Buy shares of stock""" if request.method == "GET": return render_template("buy.html") else: if not request....
0
votes
1answer
19 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
0
votes
1answer
25 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....
0
votes
1answer
15 views

Web track finance error

@app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): """Buy shares of stock""" if request.method == "GET"...
0
votes
2answers
89 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. ...
0
votes
1answer
24 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 ...
0
votes
1answer
192 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&...
0
votes
1answer
469 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....
0
votes
1answer
48 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 &...
0
votes
1answer
11 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: ...
0
votes
0answers
8 views

web application final project team?

Is there anyone who is interested in working with a team, to create and develop an idea and submit it as a final project to CS50X, it can be a team of two or three people max.
0
votes
0answers
28 views

What is the error in my code? (Finance)

I cannot seem to figure out what my problem is. Checked Line 81 several time (Yes I have made the table and all in the database). Even after removing the line, the syntax error shifts to Line 81. Only ...
0
votes
1answer
13 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 ...
0
votes
1answer
503 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 ...
0
votes
1answer
177 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 ...
0
votes
1answer
29 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="...
0
votes
0answers
45 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 ?
0
votes
1answer
350 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 ...
0
votes
1answer
285 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 ...
1
vote
1answer
150 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 ...
0
votes
1answer
130 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 ...
0
votes
3answers
517 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 ~...
0
votes
1answer
168 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 ...
0
votes
1answer
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 ...