Questions tagged [cs50-web-programming-with-python]

Filter by
Sorted by
Tagged with
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
2 votes
1 answer
352 views

How to integrate handlebars(written in raw javascript) into django templates

Please, I'm still rather new to handlebars templating, my handlebars template works perfectly with just html files, but when I try to render the page containing the handlebars template, I get all sort ...
Mike's user avatar
  • 21
2 votes
0 answers
1k views

README.md does not contain all of the required information

I am doing CS50W course, Web Development with Python and JS. The Capstone project requires a README.md file. Requirements defined here: CS50W Capstone Requirements I have changed and submitted my ...
Jack's user avatar
  • 121
1 vote
1 answer
337 views

CS50 Web Programming Mail Pset - DOM reloading on every form submission

On the mail pset the inbox page loads as default whenever the DOM is loaded. Whenever I submit my form to send an email the DOM is reloaded and inbox pops up. I'm trying to get the sent mailbox to pop ...
Brihu Sundararaman's user avatar
1 vote
3 answers
287 views

CS50W - Mail - Python Timestamp Error?

Per the problem set, I've not changed any of the Python that's included within the problem set for 'Mail'. I've only been tweaking with the JS and the HTML thus far. That's not to say my JS is ...
thunderbirds1414's user avatar
1 vote
1 answer
704 views

(Edited) CS50P - PSET 4 - LITTLE PROFESSOR

I've made some corrections, the answers for CHECK 50 are the same though. I'm not getting it, the workability of the code is fine (working as expected, even when testing by 'How to Test' section). I ...
Julian Rodrigues's user avatar
1 vote
1 answer
1k views

CS50W - Project 0 - "I'm Feeling Lucky"

For the "I'm Feeling Lucky" part, I'm getting a redirect notice (like this: https://images.app.goo.gl/Mgk6knNBYHfe5YKB7). How do I bypass this? Thank you!
user avatar
1 vote
2 answers
1k views

Can't create table from postgresql through sqlalchemy in python

I am working on project 1 of python and javascript web programming and have no clue why it just can't create table. The coding execute without returning any error. Below is the code and I really ...
Cheryl's user avatar
  • 11
1 vote
1 answer
401 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
800 views

CS50-Web programming not showing up in course section CS50.Me

I enrolled in CS50 Web Programming with Python and Javascript through EDX. After linking my Github and EDX with cs50.me I expected that the course would show in my course list, but is still has not. I ...
Kaas Broodje's user avatar
1 vote
3 answers
746 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
1 answer
328 views

Instance of 'scoped_session' has no 'execute' member

Getting the following problem using flask and SQLAlchemy: "Instance of 'scoped_session' has no 'execute' member pylint(no-member)". I use Windows 10, Flask. I suppose that the problem is somehow ...
Shahbaaz's user avatar
1 vote
0 answers
118 views

I am trying to solve my Einstein Code

I have written the following code and no matter what I try, the check always fails. Here is my code: user_input=int(input("Give Your Mass in KG to Find E=mc^2 = ")) c = 300000000 d= int (...
Abdullah Ali Abbasi 's user avatar
1 vote
1 answer
124 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
1 vote
1 answer
66 views

cs50 web programming, wiki: extend function not working

I'm currently on project 1 wiki in cs50 web. The distribution code already gave me the blocks on layout.html and extend functions on index.html. For some reason, the code I put in the blocks in index....
qwerty101's user avatar
1 vote
0 answers
704 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
1 vote
0 answers
321 views

decoding to str: need a bytes-like object, HttpResponse found

While converting markdown to html i am getting this error def title(request, title): global mdValue mdValue = util.get_entry(title) htmlValue = m.convert(mdValue) # error occurs on this ...
Pratham Dave's user avatar
1 vote
0 answers
66 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
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
1 vote
1 answer
473 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
661 views

Does anyone know how to use Django on CS50 IDE?

I canā€™t seem to run Django on CS50 IDE. I downloaded Django without a problem. I can create a Django app without a problem using "python manage.py startapp hello". But the problem comes when ...
Lim Yee Wee's user avatar
0 votes
2 answers
36 views

CS50x: Issue on problem Felipe´s Taqueria, program keeps asking me for input, without printing price, why?

I am trying to execute the problem "FelipeĀ“s Taqueria", but I am failling to see any price printed as output. Instead the program keeps asking for input. When I input "Taco", the ...
Elvino Michel's user avatar
0 votes
1 answer
658 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
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
923 views

CS50P project6 shirt.py

question.. on CS50P project 6: shirt.py, I got an error message. I believe my error is on resizing the Moppest image but I don't know what else to do. I did what the instructions said but still having ...
user2654920's user avatar
0 votes
1 answer
1k views

PSET9 / can't check until a frown turns upside down

I am getting this message in the following checks :| sell page has all required elements/ :| sell handles invalid number of shares :| sell handles valid sale I guess the problem is in by sell or buy ...
Aleksei Díaz's user avatar
0 votes
1 answer
998 views

CS50 (2021) - Finance. :( registration rejects duplicate username - expected status code 200, but got 400

IĀ“ve been struggling to complete the Pset9 - Finance, version from 2021. After reading multiple threads I decided to post here the issue, looking for some guidance so I can move forward in the course. ...
MrTxo's user avatar
  • 3
0 votes
1 answer
712 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
0 votes
1 answer
707 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
169 views

PSET8 Finance Buy. SQL query not executing

My buy function is crashing at the SQL query where I'm trying to insert data from the transaction into a transactions table. The types of each column are transaction_id(integer, primary key), user_id(...
Ewan Willsmer's user avatar
0 votes
1 answer
331 views

CS50Web python. I can't get a new entry to save and show on the homepage of my wiki project. I am using Django with python

I can't get my code to save a new entry and return an error message if entry already existed. its just the views.py I can't figure out help please. code below
Gaza's user avatar
  • 1
0 votes
2 answers
855 views

CS50W - Wiki w/ Django - Search Bar

I cannot for the life of me get the HTML form to transfer the user's search into my search function within views.py. I've tried this a number of different ways and I either just get no movement (as I ...
thunderbirds1414's user avatar
0 votes
1 answer
4k views

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: character varying = integer

In this code when I search in the book 0 index it shows the error ..... but the statements in elif statement work perfectly. When I manually enter the value instead of putting sea variable in my query ...
stormcloak's user avatar
0 votes
1 answer
59 views

C$50 FINANCE- BUY ERROR

I have a problem with my code on buy. I was wondering if anyone can help me identify the error. Whenever I go to the buy and enter the symbol and shares and click buy, it shows a 500 Internal Server ...
jankendrick's user avatar
0 votes
1 answer
148 views

CS50w Project1: Trouble posting reviews (Row Proxy error - how to ensure a tuple)

The last bit I am struggling with on Project1 is posting a rating and review. I continually get sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'RowProxy' [SQL: INSERT ...
azb1297's user avatar
  • 63
0 votes
2 answers
656 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
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
0 votes
1 answer
352 views

Cannot access CS50 Web settings for GitHub Pages

How can I enable my CS50 Web repo to be hosted on GitHub Pages? There is no Settings tab on my CS50 Web repository on GitHib. As such I cannot enable the repo for GitHub Pages as shown at the end of ...
Reversed Engineer'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
31 views

How does the cs50 video player update the url in real time?

IĀ“m curious about how the timestamp in the URL gets updated as the video plays. Is the server sending GET requests every second?
Santiago's user avatar
0 votes
0 answers
6 views

Help Required as a Fresher in CS Field

I hope this message finds you well. šŸŒŸ I'm reaching out with a burning question about my journey into the tech world, and I'm genuinely seeking your insights and advice. I'm currently diving into the ...
Muhammad Hilal soorty's user avatar
0 votes
0 answers
12 views

Cannot use Check50 or Submit50

I just started CS50 Introduction to Phyton and I cannot execute check50 or submit50. It gives me an error and I pretty much tried everything. It says to enable access, please visit submit.cs50.io. But ...
Zeynep Çelikten's user avatar
0 votes
0 answers
15 views

CS50W Mail sent email not showing

I have tried sending the mail and the console of the Chrome DevTools has shown "Email sent successfully" but it is not reflecting in the mailbox. This is function for loading the mailbox; // ...
Paulisto's user avatar
0 votes
0 answers
18 views

had the wrong file stucture

I accidentally submitted Project 0 to the wrong file structure and received an email notifying me of the mistake. To rectify the situation, I resubmitted it using submit50. Subsequently, I completed ...
Philip Chopp's user avatar
0 votes
0 answers
193 views

How can I run a unit test effectively on CS50P pset 5 (test fuel.py)

fail to spot what is wrong on this code yet pytest runs succesfully but I get error messages when CS50 test my code. I expect my code to raise ValuError, TypeError.Exceptions and be testable meet all ...
Tumelo Monaheng's user avatar
0 votes
0 answers
6 views

Why its giving output Not ok, even if it is a Alppha string?

Why its giving output Not ok, even if it is a Alppha string?
Pranay Kinra's user avatar
0 votes
0 answers
64 views

Reverse for 'entry' with no arguments not found. 1 pattern(s) tried: ['(?P<title>[^/]+)\\Z']

I'm getting this error from Django project and here is my code in urls.py urlpatterns = [ path("", views.index, name="index"), path("<str:title>", views....
Farouk Sabry's user avatar
0 votes
0 answers
7 views

Issue with check50

I tested the output from my computer , Everything look oke, but i have 2/8 for this code. any one facing this before.
Vladimir Abraham's user avatar
0 votes
0 answers
140 views

Can't execute submit50

I am trying to execute submit50, but I keep getting the same error: You might be using your GitHub password to log in, but that's no longer possible. But you can still use check50 and submit50! ...
Maya Twik's user avatar
0 votes
0 answers
104 views

CS50W - Mail : JavaScript function only working on Chrome

I have an issue with my compose_email function : function compose_email() { // Show compose view and hide other views document.querySelector('#emails-view').style.display = 'none'; document....
Walter Black's user avatar