Skip to main content

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

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

week 1 meal time: don't know where my error is

I have coded a solution for CS50's meal time from problem set 1. I can't seem to find my errors, as they don't show, but I feel like I've checked that all my floats are converted, so I'm unsure where ...
Lucas's user avatar
  • 1
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
21 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
18 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
2 votes
0 answers
146 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
0 votes
0 answers
110 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
0 votes
1 answer
22 views

Output not as expected

Why in output Twitter is getting printed, only twwtr should be printed as per my understanding.
Pranay Kinra's user avatar
0 votes
1 answer
28 views

What's the issue

my code is giving output as per expectation.
Pranay Kinra's user avatar
0 votes
1 answer
23 views

please clear the basic doubt

Why OK is displayed when i entered the integer 45 ?
Pranay Kinra's user avatar
0 votes
1 answer
333 views

CS50 2023 Finance Check50 issue

There is no way to get rid of the following check50 error: :( logging in as registered user succeeds application raised an exception (see the log for more details) I found through googling that in ...
RaulMuroc's user avatar
1 vote
1 answer
803 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
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
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
0 votes
1 answer
9 views

Finance - Quote: Toggle visibility between submit button and table

I'm happy that my finance website finally works properly!!! The thing is that I'm trying to make it look like the staff's solution website and I can't seem to get quote.html to behave like theirs (...
Avanoc's user avatar
  • 3
0 votes
1 answer
204 views

Cs50 web programming project 1 wiki (django) runserver connection refused error

I am using Django for the first time. like the lecture said I tried python manage.py runserver but on clicking the link it doesn't show django default page. instead I see this This site can’t be ...
Pragati Chauhan's user avatar
0 votes
1 answer
962 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
505 views

Unable to solve "can't check until a frown turns upside down"

I was doing the Cash problem. I entered all the possible output given in the question yet its showing error. Please help, here is my code below . . . . #include <cs50.h> #include <stdio.h> ...
Akash'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
0 answers
172 views

cs50web project 4 network - "Edit" feature - how to execute two fetch() without the need to create a time delay?

Working on "Edit" feature for project4 network. I wrote a javascript function with two fetch. First one to update the post. Second one to retrieve the now updated post and show it on page (...
dogchow's user avatar
1 vote
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
1 vote
1 answer
67 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
0 votes
1 answer
74 views

Specification imposes a 5-minute length limit on videos

I have made a youtube video on Commerce project which exceed 5 minutes. For this cause, my Project2: Commerce submission grading failed. How can I submit the project again. Please help me anybody.
Samrat's user avatar
  • 3
0 votes
1 answer
222 views

CS50 web - problem 1, Wiki. Python syntax error

I'm just getting started with CS50 Web's problem 1 (wiki). I've got the code and I'm trying to run the Django server for the first time to see what the source code gives me. I have made no edits to ...
David S's user avatar
0 votes
1 answer
21 views

default relative Imports in Django wiki failing

In views.py, when initially running the pregenerated line from . import util failed with relative import error. The standard from .dir import package also failed. Deleting __init.py__ also has no ...
Revots's user avatar
  • 1
0 votes
1 answer
369 views

CS50Web - Not Sending Emails

I just started with the Mail project for CS50Web and came across a really strange problem. Currently, I'm working on the part where I need to send an email. My algorithm for this is simple: Add event ...
Jerome Ibañez's user avatar
0 votes
1 answer
1k views

Mail CS50 Web - How to Send Email (API not working)

I'm very new to Javascript and working on mail, project 3 for CS50 web. I've been working on just sending the email initially, for about a week and I'm getting very discouraged. I can't seem to get ...
user14567126's user avatar
0 votes
1 answer
1k 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
667 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
1 answer
394 views

cs50w Project 1 Wiki Search: layout.html failing to submit POST to views.py

currently working on the search function for project 1. I've updated layout.html, urls.py, and views.py, but when I input anything into the search bar layout.html does not pass the POST information to ...
Jason Tan's user avatar
0 votes
1 answer
723 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
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
309 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
240 views

cs50 web programming with python & javascript. Entry not saving and I can't figure out why

I am a newbie coder and I just started the cs50 web programming course on edEX. I seemingly cannot get my code to save a .md (markdown file) in a directory. For now I am just trying to save the .md ...
DaitoCode's user avatar
0 votes
1 answer
122 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
0 votes
1 answer
734 views

Django model default value not working

For some reason, the default value for a Django model field I have doesn't work. As in, if the value is left blank by the user when creating an object for that model, then when the value is used in a ...
user avatar
0 votes
1 answer
826 views

CS50 Web Python Project 1 Wiki: entry method causes search method to break

I'm working on Project 1 Wiki. I've independently got the entry and search functions to work, entry works by itself and search works by itself. If un-comment the code related to entry, search breaks. ...
UUanderson'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
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
177 views

CS50W - Django Forms vs HTML Forms

CS50W 2020 - Project 2 - Commerce How come in lecture 3 (https://cs50.harvard.edu/web/2020/notes/3/#django-forms) Django forms are used, but in lecture 4 (like here: https://cs50.harvard.edu/web/2020/...
user avatar
0 votes
1 answer
219 views

CASH NOT UPDATING - FINANCE SELL

so everything I have so far is working except the part where I need to update the cash right after I sell a stock. As you can see in the table below what's happening is that everytime I sell a stock ...
Bob's user avatar
  • 5
1 vote
0 answers
734 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
1 answer
334 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
858 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
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
0 votes
1 answer
734 views

CS50W - Wiki with Django - I want to edit a wiki entry, but I don't know how to send the default value to the template if I use Django forms

I've tried to do this: class editPage(forms.Form): title = forms.CharField() textContent = forms.CharField(widget=forms.Textarea(attrs={'class' : 'textContent'})) def edit(request,name): ...
Lautaro D. Futuro'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
0 answers
174 views

How do I create an advanced query page using HTML and CSS? Should I use any other langauges to make it a faster process?

How do I create an advanced query in HTML and CSS? I have to create a front end similar to Google and have already outfitted the first two pages, it's the 3rd page, the advanced query page that I need ...
Alpha Eon's user avatar
1 vote
0 answers
328 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
1 answer
340 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