Questions tagged [cs50web]
The cs50web tag has no usage guidance.
22
questions
0
votes
1answer
13 views
CS50W Email - Problem setting .innerhtml to “” due to elements displaying as “null”
I have a problem resetting the content for the divs in the view where I show a single email. For some reason the divs console.log out as "null", while the parent element for some reason ...
0
votes
1answer
15 views
Return confirm in javascript not working
I have the following JS code in my HTML, but no confirm windows shows when pressing the button - what is wrong?
<script>
function confirmSubmit() {
var retVal = confirm("Are you ...
0
votes
0answers
5 views
cs50.me/cs50w grade disappeared without any email
My grade of final project of cs50 web disappeared but I haven't received any email with info why it is rejected(not even in spam). Any idea where can I get info why they have rejected me ?
0
votes
2answers
114 views
Help with Search Bar - Wiki Project1 CS50 Web Django
For the Wiki project I'm having trouble implementing the search bar. I have spent about 2 days researching search bars in Django, but so far everything I've tried yields the same result:
No matter ...
0
votes
0answers
16 views
Parsing Error: Unexpected token in Javascript
For my final project I'm implementing a simple chrome extension in Javascript but I keep getting the error
"Parsing Error: Unexpected Token :"
However I copied this example code directly ...
0
votes
1answer
160 views
CS50W Django Project1 Wiki - Textarea issue
I got stuck at completing Wiki assignment because of strange behaviour of textarea in form, needed for creating and editing entries. Everytime user saves the entry, for each line of entered text there ...
0
votes
0answers
20 views
cs50 Web course - Do you have to pay for the certificate to have your web work checked?
For cs50 web course, i was informed that actual people check your work, instead of there being an automatic check that will show you how many tests your work fails or not.
Do i have to pay for the ...
0
votes
0answers
71 views
CS50W Final Project: I need help with deploying my website
for my final project, i made a website that i want to also deploy to production, because i want to be able to implement it in real life. I have made the docker image according to what Brian ...
0
votes
0answers
18 views
href not working properly
i have a layout html file in the following path:
C:\Users\user1.vscode\files\web50p1\templates\layout.html
in which i have the following code:
<a href="/logout">Log Out</a></li&...
0
votes
1answer
71 views
Can't import books.csv using import.py
I'm on a project1, here is the link to it: https://docs.cs50.net/ocw/web/projects/1/project1.html
I've successfully made a Table books using my Python script, however when I try to import the "books....
1
vote
1answer
596 views
Flask Sessions Not Working
I'm using VS Code and following along Brian's Flask class in Web50.
I have copied his notes program word for word, and somehow I get different results. I've downloaded Flask and Sessions, so that's ...
0
votes
0answers
39 views
Trying to flask run the task session on the CS50 web Lecture DATABASE issue
I had a great time learning about HTML and CSS. Then came this intimidating flask feature. I was able to create a session["username"] to login and logout. I'm trying to use session to create a todo ...
1
vote
0answers
1k views
sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string
Traceback (most recent call last):
File "list.py", line 9, in
engine = create_engine(os.getenv("DATABASE_URL"))
File "C:\python 3.8\flask_env\env1\venv\lib\site-packages\sqlalchemy\...
0
votes
0answers
11 views
Can I use databases to take in signup information from the user?
Can I use database in my Project 1 website for the user signup and login, to store the user information? Or is it necessary to use sessions, as mentioned in the 'hints' section of the Project 1 ...
0
votes
0answers
59 views
Debugging error message
C:\Users\LIVELINKS\Desktop\web\lecture3\databases (master)
λ python list.py
Traceback (most recent call last):
File "list.py", line 7, in
engine = create_engine(os.getenv("DATABASE_URL"))
...
0
votes
0answers
20 views
What is the difference between regular cs50.harvard and extension cs50.harvard?
I am planning to take CS50 web course. However I find the following two:
https://cs50.harvard.edu/web/
and
https://cs50.harvard.edu/extension/web/2020/spring/
What is different between of them? ...
0
votes
1answer
53 views
Problem with commas in psql
So I have a problem with project1, specifically in import.py. In the csv provided with the books information, some of them have a comma inside the title, and this is causing the following error when I ...
0
votes
1answer
25 views
CS50_Web ORMs,APIs_ lecture 4, classes4.py - Understanding Classes, Objects, Functions and Lists
I've "simplified" the ORMs,APIs- lecture 4_web_classes4.py code to try and understand more about Python classes, objects and list. can anyone help me out?
Question 1: Why doesn't print(self....
1
vote
1answer
264 views
cs50web switch from submit50 to me50?
I started with cs50 web earlier this year, completed the first 3 assignments and then submitted by pushing them to the relevant branch of the submit50/USERNAME.git repository, and got a grading email ...
1
vote
1answer
433 views
API Goodreads issue with the book page
I have been facing an issue with the API, it does not display in the book page in project1 I keep getting the error "Not Found" could someone help me?
Check the screenshots of the python code below, ...
0
votes
1answer
97 views
CS50 Web Development Project 2 Attribute Error: module 'engineio' has no attribute 'WSGIApp'
This is my first time trying to run flask on Linux, I've made projects 0 and 1 in Windows 7. I've been able to run Project 2 on Windows, right before I switched to Linux. As I enter "flask run" on the ...
0
votes
1answer
402 views
SQL SELECT query for multiple word search
I'm working through project 1 in the CS50 Web Programming course. I have created a search form which is just one text box in the middle of the page where the user can type in the ISBN number, the ...