Hello! All good . I didn't even watch it all but I already liked it, I identified with it; because it is precisely by dividing the problem into small parts "in blocks" that we can solve big problems. Congratulations God bless you👏
hello, Alexandrina I used your code technique in my codespace, my server works, and my code runs but I can't register!! Do you have any idea how should I resolve my problem?
Hey, OMG the "try except" thing worked! I was stuck here for hours trying other methods to check for duplicate username. It always returned an internal server error. Thank you!
I still did not understand how you solved redundancy of username usinging "try , except" . Does it look through the database if the username is already taken?
Hi! I am going to send you an explanation, but I want to share some screenshots, which I can't do here. I have a Discord server for CS50 students. Here's the link: discord.gg/P4RCj6ezgq Please join the server, leave the same message there and I'm going to answer your question :)
hey i could really use some help. ive done exactly as u have but i am still getting a error that says username is required even if i put the username. what can i do????
Hi! I would be glad to help you! In order to provide you with some feedback, I'll need to review your files. I have a Discord server for CS50 students - please feel free to join and share a zip with your solution: discord.gg/QQvBjdXTmA
Hello thanks for the video, I have a problem, which I put different passwords I get on the page "It requires password confirmation! And when I try to register, I get the same, any idea that I am doing wrong?
Hi! I have a Discord server where I help CS50 students like you. Could you please join it and reach out to me there? I'll help you ASAP. Here's the link to my Discord: discord.gg/QQvBjdXTmA
Hi, I can't give you a straightforward solution as there could be multiple reasons for this. I suggest that you join my Discord server and send a zip with your solution there: discord.gg/QQvBjdXTmA
@@alexandrinamehandzhiyska6947 i was thinking that if the database does not update. and the python does not detect an error, you will go on to login. however if you register the same user. you will still go to login. if there is an error with updating the database (because the database will be empty).
@@avatharbehemoth When logging in, the login function looks for the user into the database. If the user hadn’t been registered successfully, it wouldn’t have returned the correct data because there’s nothing in the table and therefore the whole login function wouldn’t have worked.
Hi! I have a Discord server for CS50 students: discord.gg/P4RCj6ezgq Please join the server and send me the problem you encounter, as well as your code, and I will help you. 😊
Thank you for all your videos, they have been super helpful. I have been working on finance for a month now and I cannot figure it out. I keep getting this error and I am not even sure what part of the code is off :( any suggestions would be greatly appreciated! :( logging in as registered user succceeds Cause application raised an exception (see the log for more details) Log sending POST request to /login exception raised in application: RuntimeError: near "transaction": syntax error
Thanks for the video it was really helpful. However, I get the following error after running the code with check50: :( logging in as registered user succeeds excepted status code 200, but got 400. I not know what causes this error since I could log into the registered user while I was testing the code myself. I have written the same code that you have shown in this video after trying to solve this issue on my code. I would be really glad if you could look into this issue. Thanks. (16:32 contains the same error message)
I believe this is because you haven’t implemented the index page yet. By default, this page returns status code 400, but after you do it (you can watch part 4 on my channel), this issue should disappear. If it still doesn’t, you can DM me, I have posted my social media links in the description. 😊
@@dominiquetrull2115 I just tried reloading the register page with my code and there was no problem. Can you send me a message on IG? I'll help you :)
Great explanation. I actually do alittle bit different to what you do in the process of checking for username but your code is much more better. Thanks
Thank you! Yes, there are always multiple ways to approach a certain problem, I'm just explaining one of them here. It's very nice that you're trying to solve the task on your own. This will be beneficial for the development of your algorithmic thinking. Keep it up!
Tbh, I don't have an accurate estimate because I took the course a while ago (in the beginning of last year), but I remember that Finance did take significantly longer to solve than the other PSETs. At the time, I hadn't learned Python and only had experience with C, JS, HTML, and CSS, so I definitely needed some time for adjustment. Once I got a solid grasp of the basic syntax and acquired fundamental knowledge of Flask, I felt much more confident and was able to push through the rest of the pset more quickly. As a rough estimate, I would say that Finance took me 5 to 10 hours, but that could be a total under/over-estimation :D
Hi! I have a Discord server where I help CS50 students. Please join the group if you have a Discord account, using the following invitation link: discord.gg/P4RCj6ezgq After you join, please send a message in the Introduction to Computer Science channel including two parts: 1. A description of the problem you encounter when you open the app / run the code (the error message in the console) 2. A zip with all your solution files (if more than one). I'll take a look at your code as soon as possible. Thank you!
Because in request.form.get() I'm saying "Give me the value of the literal field called "password"", while in generate_password_hash I'm saying "Call that function and don't send in the literal text "password", but the value of the password variable, which could be "asdasd", "TestPassword", or whatever you want". In the first case, it's the literal text "password", while in the second one it's the value of the "password" variable.
Hello thank you for your explanation but still i have some problems about understanding code.Could you share your code with us please? If you couldn't you can send code to my email. Dont worry i have already finished my CS50 course im not gonna share your code.Thanks :)
despite the video being so detailed, i love how you keep your codes simple.
Thank you! I always try to make sure my code is clean and readable! I'm glad you've liked it!
Hello! All good . I didn't even watch it all but I already liked it, I identified with it; because it is precisely by dividing the problem into small parts "in blocks" that we can solve big problems. Congratulations God bless you👏
this is great but i ran the check50 it is not able to fulfill the "logging in as register user succeeds" requirement pls help,
hello, Alexandrina I used your code technique in my codespace, my server works, and my code runs but I can't register!! Do you have any idea how should I resolve my problem?
Thanks for ur clear demo. Pls elaborate on the purposes of the try-except codes, when they are to apply. Thanks
Hi! I already have a video on that topic. Here’s the link:
ruclips.net/video/L9S0j9SQt8E/видео.html
Hey, OMG the "try except" thing worked! I was stuck here for hours trying other methods to check for duplicate username. It always returned an internal server error. Thank you!
Hhaha, yes, sometimes it’s very convenient to use it. 😊
I still did not understand how you solved redundancy of username usinging "try , except" . Does it look through the database if the username is already taken?
Hi! I am going to send you an explanation, but I want to share some screenshots, which I can't do here. I have a Discord server for CS50 students. Here's the link:
discord.gg/P4RCj6ezgq
Please join the server, leave the same message there and I'm going to answer your question :)
@@alexandrinamehandzhiyska6947 really means alot ….keep up the detication
i think is bcs the username set as unique index so it auto check redundacy while in try except , can check through the sqlite3
Thanks! Amazing video as always;)
Thank you!
hey i could really use some help. ive done exactly as u have but i am still getting a error that says username is required even if i put the username. what can i do????
Hi! I would be glad to help you! In order to provide you with some feedback, I'll need to review your files. I have a Discord server for CS50 students - please feel free to join and share a zip with your solution:
discord.gg/QQvBjdXTmA
@@alexandrinamehandzhiyska6947 i sent u a text on discord, could you please help me out
Hello thanks for the video, I have a problem, which I put different passwords I get on the page "It requires password confirmation! And when I try to register, I get the same, any idea that I am doing wrong?
Hi! I have a Discord server where I help CS50 students like you. Could you please join it and reach out to me there? I'll help you ASAP. Here's the link to my Discord:
discord.gg/QQvBjdXTmA
After registration i see new user added to the user table . However , with same credentials I can not log in . What Am i missing ?
Hi, I can't give you a straightforward solution as there could be multiple reasons for this. I suggest that you join my Discord server and send a zip with your solution there:
discord.gg/QQvBjdXTmA
you didnt check the database for the addition of a user.
Yes, but I logged in successfully. If the user hadn’t been added to the database, I wouldn’t have been able to log in. 😊
@@alexandrinamehandzhiyska6947 i was thinking that if the database does not update. and the python does not detect an error, you will go on to login.
however if you register the same user. you will still go to login. if there is an error with updating the database (because the database will be empty).
@@avatharbehemoth When logging in, the login function looks for the user into the database. If the user hadn’t been registered successfully, it wouldn’t have returned the correct data because there’s nothing in the table and therefore the whole login function wouldn’t have worked.
@@alexandrinamehandzhiyska6947 i just checked in the database. under firefox it remained empty.
under chrome, it works??!!??
ah well it worked.
Can someone help with with this error:
exception raised in application: TemplateSyntaxError: unexpected char '&' at 614
it occurs when "logging as registered user succeeds" is checked
Hi! I have a Discord server for CS50 students:
discord.gg/P4RCj6ezgq
Please join the server and send me the problem you encounter, as well as your code, and I will help you. 😊
Thank you for all your videos, they have been super helpful. I have been working on finance for a month now and I cannot figure it out. I keep getting this error and I am not even sure what part of the code is off :( any suggestions would be greatly appreciated!
:( logging in as registered user succceeds
Cause
application raised an exception (see the log for more details)
Log
sending POST request to /login
exception raised in application: RuntimeError: near "transaction": syntax error
Thank you! Could you please send me the code on LinkedIn or Facebook so that I can check it out? I’d be glad to help you!
Thanks for the video it was really helpful. However, I get the following error after running the code with check50: :( logging in as registered user succeeds excepted status code 200, but got 400. I not know what causes this error since I could log into the registered user while I was testing the code myself. I have written the same code that you have shown in this video after trying to solve this issue on my code. I would be really glad if you could look into this issue. Thanks. (16:32 contains the same error message)
I believe this is because you haven’t implemented the index page yet. By default, this page returns status code 400, but after you do it (you can watch part 4 on my channel), this issue should disappear. If it still doesn’t, you can DM me, I have posted my social media links in the description. 😊
It's not working out when ever I am reloding that register page it's shows error in application and it happened twice to me
Can you send me a zip file of your code? You can DM me on IG and I'll give you my email.
@Sam sagar I’m having the same issue
@@dominiquetrull2115 I just tried reloading the register page with my code and there was no problem. Can you send me a message on IG? I'll help you :)
Can you provide me your email id
@@alexandrinamehandzhiyska6947 what IG means
Great explanation. I actually do alittle bit different to what you do in the process of checking for username but your code is much more better. Thanks
Thank you! Yes, there are always multiple ways to approach a certain problem, I'm just explaining one of them here. It's very nice that you're trying to solve the task on your own. This will be beneficial for the development of your algorithmic thinking. Keep it up!
how much does it accually take you to solve this assignemts before making a vid about the solution
Tbh, I don't have an accurate estimate because I took the course a while ago (in the beginning of last year), but I remember that Finance did take significantly longer to solve than the other PSETs. At the time, I hadn't learned Python and only had experience with C, JS, HTML, and CSS, so I definitely needed some time for adjustment. Once I got a solid grasp of the basic syntax and acquired fundamental knowledge of Flask, I felt much more confident and was able to push through the rest of the pset more quickly. As a rough estimate, I would say that Finance took me 5 to 10 hours, but that could be a total under/over-estimation :D
Thankyou so much for your vedios
You're welcome!
SUBSCRRIBED!!! Great work , but After i follow what you said show me in register button intenal issue again i dont know why
pls help
Hi! I have a Discord server where I help CS50 students. Please join the group if you have a Discord account, using the following invitation link:
discord.gg/P4RCj6ezgq
After you join, please send a message in the Introduction to Computer Science channel including two parts:
1. A description of the problem you encounter when you open the app / run the code (the error message in the console)
2. A zip with all your solution files (if more than one). I'll take a look at your code as soon as possible. Thank you!
@@alexandrinamehandzhiyska6947 It was a spelling mistake only :(
@@hamadal3thbi859 glad you found it 😊
good!!!!!!!!!!!, thank you!!
Subscribed!!!
Thank you!
why is is that you put password in quotes in request.for.get but in the generate_password_hash you d o not put password in quotations?
Because in request.form.get() I'm saying "Give me the value of the literal field called "password"", while in generate_password_hash I'm saying "Call that function and don't send in the literal text "password", but the value of the password variable, which could be "asdasd", "TestPassword", or whatever you want". In the first case, it's the literal text "password", while in the second one it's the value of the "password" variable.
@@alexandrinamehandzhiyska6947 I see. Great thank you! How was your exams?!
@@artur2.043 good! In fact, I just had one today 😄
Hello thank you for your explanation but still i have some problems about understanding code.Could you share your code with us please? If you couldn't you can send code to my email. Dont worry i have already finished my CS50 course im not gonna share your code.Thanks :)
Can you send me your email?
@@alexandrinamehandzhiyska6947 of course, eastofwest33@gmail.com here you are. Can you send all parts please ?
@@alexandrinamehandzhiyska6947 hi can you send me please i need this so much
@@alexandrinamehandzhiyska6947 Hey plz send me the codes plz
I need it