2
votes
Accepted
Flask Sessions Not Working
Try setting the first conditional in your index function to:
if session.get("notes") is None:
This way you will only reset the session's collection of notes when it actually did not yet exist.
At ...
2
votes
Accepted
cs50web switch from submit50 to me50?
You're correct that the submission process changed in late July.
All of your old submissions can be seen here: http://legacy.cs50.me and new submissions here: http://submit.cs50.io
Both groups of ...
1
vote
Help with Search Bar - Wiki Project1 CS50 Web Django
Nevermind, I have been able to figure it out. I had to use a GET request.
1
vote
Problem with commas in psql
If a comma appears, it defines a separation between values. However, if a string is contained in quotes, any commas inside the string is treated as part of the string and not as a delimiter. Try ...
1
vote
Accepted
CS50_Web ORMs,APIs_ lecture 4, classes4.py - Understanding Classes, Objects, Functions and Lists
passengers is a list of Passenger objects, therefore print(self.passengers) is printing a list of Passenger objects. This print(self.passengers.flight_id) would fail because self.passengers is a list ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cs50web × 19cs50-web-programming-with-python × 12
cs50w × 4
project1 × 4
python × 3
flask × 3
django × 3
sql × 2
wiki × 2
project2 × 2
cs50-web-django × 2
mail × 2
session × 2
commerce × 2
submissions × 1
submit50 × 1
functions × 1
postgresql × 1
list × 1
sqlalchemy × 1
flask-sqlalchemy × 1
cs50-website × 1
cs50w-project3 × 1
cs50w-project4 × 1
send × 1