Skip to main content

Questions tagged [cs50web]

The tag has no usage guidance.

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

CS50 Web - Wiki - How to include user input within URL

I've been reading and trying different approaches to showing content of an entry to a user for 4 days. I can't seem to find any solution, I guess I don't understand how creating URLs in Django works. ...
phnlg's user avatar
  • 1
0 votes
0 answers
17 views

Don't Know how to fix Duplicating of Django Url Path in Search bar

I am doing Cs50web course and working on a project using Django. So, I have created a path in urls.py of application and It has two request Get and Post It's a form page. Where you can add the Title, ...
backman101's user avatar
1 vote
1 answer
144 views

CS50W Capstone Project: Tools I Am Allowed to Use

It is mandatory in the project description to use django for the backend and Javascript in the frontend of my project. The course lessons introduce us to React and Bootstrap libraries. Can I also use ...
Praise Olusomiji's user avatar
0 votes
1 answer
37 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 ...
Khan's user avatar
  • 1
0 votes
1 answer
677 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 ...
user17470872's user avatar
0 votes
1 answer
110 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 ...
Alexander's user avatar
  • 145
0 votes
1 answer
70 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 ...
Alexander's user avatar
  • 145
1 vote
3 answers
757 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 ...
user14567126's user avatar
0 votes
1 answer
715 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 ...
Hellbartonio's user avatar
0 votes
1 answer
106 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....
Ayush Verma's user avatar
2 votes
1 answer
3k 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 ...
luk020's user avatar
  • 23
0 votes
0 answers
60 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 ...
NgKen0995's user avatar
1 vote
0 answers
3k 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\...
Nabeel Official's user avatar
0 votes
1 answer
67 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 ...
Eric Koenig's user avatar
0 votes
1 answer
28 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....
nvs0000's user avatar
  • 179
1 vote
1 answer
404 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 ...
Chris's user avatar
  • 113
1 vote
1 answer
474 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, ...
Ahmedalsa's user avatar
0 votes
1 answer
191 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 ...
YuriAFGomes's user avatar
0 votes
1 answer
618 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 ...
fejkens's user avatar