Questions tagged [cs50web]

The tag has no usage guidance.

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

Why there is no grading for my web50 projects submissions?

Dears, I'm facing problem regarding projects submissions. Please find below screenshot: I have done the projects, submitted it completely with (submit form, video recorded * timestamp for each one) ...
user avatar
0 votes
1 answer
9 views

What do we mean by "close" auction.?

In the Project, one of the objectives is: If the user is signed in and is the one who created the listing, the user should have the ability to “close” the auction from this page, which makes the ...
user avatar
  • 1
0 votes
0 answers
11 views

CS50W project3 archiving view function returns no content for Fetch() request to be detected as complete

I am at the stage of archiving emails in project 3. since The PUT request to /emails/email_id (which is connected to a view that marks emails as archived) returns an HttpResponse of 204 with no ...
user avatar
0 votes
0 answers
11 views

Getting error when sending form data via API

I am working on send_mail function I am getting the following error while sending the form data Bad Request: /emails "POST /emails HTTP/1.1" 400 60 Here is my code document.addEventListener('...
user avatar
  • 1
0 votes
0 answers
16 views

Network - querySelector returning undefined

I'm working on the edit post functionality. Basically I would like to re-render the innerHTML of any given post to display a text, prefilled with the existing contents of the post. The issue I'm ...
user avatar
0 votes
1 answer
113 views

CS50W Project Wiki search function

I am trying to write the search function where the user submits a wiki search. If the query is in the given list of entries, the user should be redirected to related entry's page. If the query doesn't ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
1 vote
2 answers
512 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 ...
user avatar
0 votes
1 answer
470 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 ...
user avatar
0 votes
1 answer
87 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....
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 23
0 votes
0 answers
50 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 ...
user avatar
1 vote
0 answers
2k 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\...
user avatar
0 votes
1 answer
57 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 ...
user avatar
0 votes
1 answer
27 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....
user avatar
  • 179
1 vote
1 answer
312 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 ...
user avatar
  • 113
1 vote
1 answer
454 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, ...
user avatar
0 votes
1 answer
139 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 ...
user avatar
0 votes
1 answer
563 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 ...
user avatar