Questions tagged [project1]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
486 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
1 vote
2 answers
122 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 ...
user avatar
1 vote
0 answers
446 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 ...
user avatar
1 vote
0 answers
42 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 ...
user avatar
1 vote
1 answer
611 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 ...
user avatar
0 votes
1 answer
149 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 ...
user avatar
  • 103
0 votes
1 answer
397 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 ...
user avatar
0 votes
2 answers
545 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 ...
user avatar
  • 63
0 votes
1 answer
56 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
2 answers
477 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....
user avatar
  • 3
0 votes
3 answers
684 views

adminer.cs50.net Not working

Guys there has been a problem in the website : "https://adminer.cs50.net" I tried to login multiple times and keeps giving me the error: "Session expired, please login again." could someone please ...
user avatar
0 votes
1 answer
141 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 ...
user avatar
0 votes
0 answers
29 views

CS50 web: wiki edit NoReverseMatch

I'm working on CS50 Web's Project1. For some reason I keep getting this error message: In my interpretaion, the error message is raised because I didn't provide a required argument for the path, but ...
user avatar
0 votes
1 answer
71 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
0 answers
15 views

what is the difference between the 'wiki' vs. 'encylopedia' folder is project 1 django?

In the starter code there is a folder called encyclopedia and another folder called wiki. I know there's only one app according to the instructions, and that is encyclopedia. Is wiki suppose to be an ...
user avatar
0 votes
0 answers
52 views

cs50w: how to open a new page with a unique name for wiki/PAGE_NAME?

Project1: "Entry Page: Visiting /wiki/TITLE, where TITLE is the title of an encyclopedia entry, should render a page that displays the contents of that encyclopedia entry." I am having ...
user avatar
0 votes
1 answer
443 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
172 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 ...
user avatar
0 votes
1 answer
82 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 ...
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})....
user avatar
  • 1
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
212 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,...
user avatar
  • 418
0 votes
1 answer
76 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....
user avatar
0 votes
1 answer
25 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
user avatar
  • 1
0 votes
1 answer
54 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 = "...
user avatar
0 votes
1 answer
53 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. ...
user avatar
0 votes
1 answer
103 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....
user avatar
  • 63
0 votes
0 answers
46 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 ?
user avatar
0 votes
1 answer
4k 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 ...
user avatar