Questions tagged [cs50web]
The cs50web tag has no usage guidance.
20
questions
0
votes
0
answers
6
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, ...
0
votes
0
answers
25
views
CS50 Web Wiki Pset Logic for Edit Function
I'm almost done with the Wiki Pset - just need to finish the edit function and I'm struggling a bit with the logic. How can my edit() function "know" what entry to edit?
Right now I have the ...
0
votes
0
answers
27
views
Problems with WIki Pset
I'm working on the Wiki Pset for CS50 Web. I'm running into a couple of problems that I think might be related to my url routing?
When I load the site and click on "Create Page" on the left ...
1
vote
1
answer
48
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 ...
0
votes
1
answer
28
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 ...
0
votes
1
answer
553
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 ...
0
votes
1
answer
99
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
1
answer
30
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 ...
1
vote
3
answers
698
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
1
answer
654
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
1
answer
92
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....
2
votes
1
answer
2k
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
0
answers
54
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
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\...
0
votes
1
answer
63
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
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....
1
vote
1
answer
379
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
1
answer
467
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
1
answer
181
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
1
answer
593
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 ...