Questions tagged [project1]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

cs50w project 1 wiki search issues

There are issues with my search code. Example: If the query does not match the name of an encyclopedia entry, the user should instead be taken to a search results page that displays a list of all ...
Matrix's user avatar
  • 67
0 votes
1 answer
663 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
717 views

Edit Function Help - CS50 Web Project1 Wiki

I've been having trouble with the edit function for the wiki project1. So far I've tried many different approaches but nothing has worked. I have the "edit" button on every entry page of the ...
user14567126's user avatar
1 vote
3 answers
749 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
1 vote
2 answers
289 views

How to get markdown info to HTML

Question from Project 1 in CS50W I'm stuck trying to get the markdown info from files to my HTML. I manage to get the markdown info into a HTML string, but when I input it to my HTML I get the same ...
Carlos Gonzalez's user avatar
0 votes
1 answer
710 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
304 views

CS50Web: Project1 Wiki - Error loading markdown2 module

I've tried to import the markdown2 module in my views.py file but I get an error ModuleNotFoundError: No module named 'markdown2'. I've tried restarting my machine, uninstalling and reinstalling the ...
hrithikbansal's user avatar
0 votes
1 answer
121 views

Struggling to debug my code as I can't get print statements to work

I've been working on Project 1 from CS50W for a few days now and finally got my search bar to appear on my page! The issue I have now is I don't think the input is being pulled in from my form. I've ...
Wh0am3ye's user avatar
1 vote
0 answers
713 views

CS50 Web 2020, Project 1 - Wiki, CSS not working

I'm currently using Django as explained in cs50w 2020 lecture 3. Under the static folder inside encyclopedia directory is the styles.css. This was in the distro code and there is already some styles ...
Jeevan Kumar's user avatar
0 votes
0 answers
3k views

raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@app.route('/api/<string:isbn>', methods = ['GET']) def isbn(isbn): #import api from Goodreads (stats) book_data = db.execute("SELECT * FROM books WHERE isbn=:isbn",{'isbn':isbn})....
Haa's user avatar
  • 1
0 votes
1 answer
51 views

.fetchone() is returning extra characters

I made a search system for project 1 that returns the author, title, and year of publication of a book when you give the ISBN. However, my code is returning extra characters. If I input the ISBN ...
cs50thomcatmeow's user avatar
1 vote
0 answers
68 views

cs50w Project 1: Web page running very slow

I just finished my book review page for project 1 and everything is working fine, but the site takes forever to load certain parts. When trying to log in or create a new account, or when trying to ...
cristobal chavez's user avatar
0 votes
1 answer
315 views

postgresql syntax error

So this is part of the import.py code in project1: db.execute("INSERT INTO books (isbn, title, author, year) VALUES (:isbn, :title, :author, :year)", {"isbn": isbn, "title": title,...
Chris's user avatar
  • 428
0 votes
1 answer
130 views

Problem in importing from csv file

I am currently trying to import the contents of the books.csv file into my PostgreSQL database on Adminer. Here's my code: import csv import os from sqlalchemy import create_engine from sqlalchemy....
Shrey Tripathi's user avatar
0 votes
1 answer
34 views

adminer.cs50.net not accessible

I'm trying to access https://adminer.cs50.net/ but it's showing HTTP ERROR 503, Is the URL changed or If the server is down for maintenance, when will it be available
Altaf's user avatar
  • 1
0 votes
1 answer
66 views

goodreads api request return code 404

I have tested my function separately in python and it worked: def get_goodreads_review(isbn): return requests.get(GOOD_READ_URL, params={"key":KEY, "isbns": isbn}) if I set isbn = "...
Hoi Fei Kwok's user avatar
0 votes
1 answer
61 views

How to keep track of current user and book in project 1

I am now doing CS50W project 1. After letting user login and having enabled the user to do the book search, I need a way to keep track of the user when he or she is browsing from one page to another. ...
Hoi Fei Kwok's user avatar
0 votes
1 answer
119 views

CS50W Project1: how to access specific part of json object

I am working on the part of the project where people can click on a book from the search results page, which will then take them to the specific book's page. I am getting this error: json.decoder....
azb1297's user avatar
  • 63
0 votes
2 answers
660 views

CS50W Project1: Type error cannot pickle _thread._local object

Currently working on CS50W's Project1, working with the GoodReads API. I thought the Register/Login/Logout requirements would be easy and quick for me to complete since I did it already with the CS50 ...
azb1297's user avatar
  • 63
0 votes
1 answer
66 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
0 answers
54 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 ?
Prashant Singh's user avatar
0 votes
2 answers
509 views

CS50's Web Programming - Unable to import books.csv file into database

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....
Ryan's user avatar
  • 3
0 votes
1 answer
200 views

Cs50 Web Programming - How to autocomplete - Project 1

I am doing project 1 and I have a problem. While doing the search page, I have show possible autocompleted texts to help the user with the search, but I don't know how to do that. I know it was shown ...
southernKid33's user avatar
0 votes
1 answer
148 views

What are the challenges when setting up your dev enviroment for Project 1 (MacOS)?

So it took me (several) hours yesterday to even have the boiler plate flask web application up on running for Project 1. Here I will be adding my notes on what went wrong and how I fixed it. In a ...
user1615102's user avatar
0 votes
1 answer
5k views

Issue with psycopg2 dependency - pg_config executable not found on Mac OS

For Project 1: When running "pip3 install -r requirements.txt" for the initial setup, I get an issue with the psycopg2 dependency: Error: pg_config executable not found. pg_config is required to ...
user1615102's user avatar
1 vote
1 answer
647 views

Having Issues Setting up Flask Server in Project 1

I am having trouble setting up my flask application in Project 1. Here is some additional screenshots of the error messages I get in browser when running flask. Here is some additional info: Running ...
Stephen Tham's user avatar