Python Flask From Scratch [Part 2] - User Registration

preview_player
Показать описание
In this video we will start the authentication system in our Python Flask app and program the user registration system

CODE: Code for this video

Python Crash Course:

SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:

FOLLOW TRAVERSY MEDIA:
Рекомендации по теме
Комментарии
Автор

Thank you so much brad . Such wonderful web series for python, flask.I learned a lot .Best YouTube channel I ever found.Thanks a again.

TravTechie
Автор

Thanks Brad. It was refreshing to stay focused on the user registration without getting sidetracked and encumbered by object oriented paradigms like happens in many Flask videos.

txdba
Автор

I'm on Mac OS, I'm having issues installing mysql-server, whats the right command for mac os python 2?

warzonewarfare
Автор

Great tutorial,

Side note, if you don't want to return a value from a function just yet, you can use the keyworkd `pass` as a placeholder, it works wonderuflly for if statements that you don't want to do anything with yet.

eoussama
Автор

i'm so glad you have the python series i recently started learning and seriously you are like my go to guy to learn any language. Thank you once again :)

hamzashaikh
Автор

This is so helpful for quickly picking up Flask - You might not want to do the insertion in the way that you performed it at 26:30 as this is vulnerable to SQL injection attacks (you want top use a pre-prepared/stored procedure instead)

ComputersAreRealCool
Автор

how to get rid of "AttributeError: 'MySQL' object has no attribute 'connection' ".?

TravTechie
Автор

I got LAMPP installed in my PC and this is the error I get on attempt to register:

(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")

Solution(s) please?

josephgitonga
Автор

15:00 we can do "pass" instead of return in the if statement. Also, thank you much for this amazing series!!! You Legend Af!

astrix
Автор

Hi, thank you for the wonderful tutorial!! Just have one question when I use the same comments to get "from wtforms import ....", the terminal shows me that there is MODULENOTFOUNDERROR: No module named 'wtforms'. BUT I already pip Install Flask-WTF. What's wrong with this? Is it OK if I want to use sqlite3 from python to replace mySQL?

JingWang-gcpc
Автор

I am facing a problem regarding flask-mysqldb. My terminal shows this "No module named flask_mysqldb" when I run the file. I have tried to reinstall it using python 3.7 but it still does recognize it. What should I do?

harshitbagla
Автор

Okay, this might be a really silly question, but you have used two terminals to do those commands, its difficult to know which one is the command prompt and which one is the atom terminal, since I'm a Windows user. Can you help me with that?

avishigupta
Автор

I am getting this error after I click on register button :


builtins.TypeError
TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given

AT

if request.method == 'POST' and form.validate():

Any ideas why ?

SurajGusainRocks
Автор

Can you please solve my query? Are you using Linux Ubuntu on cloud machine or on-premise installation....?

dataecstasy
Автор

Hello! I have a problem with rendering the Register page. I always got an error
expected token 'end of print statement', got '=')
I did everything like it says in this tutorial and compared my code with the source code on github. Could be the cause of this difference are bootstrap verison or python version that i use? (i use the lattest ones) What could be the problem? I would higly appreciate any help. Peace!

laptop_here
Автор

bro im using pymysql when im logging after registration im getting "pymysql.err.InterfaceError: (0, '')" .after reloading that page im redirecting to admin pannel

kodandakrishnasai
Автор

Great series. I have just completed project for CS50 course that is focused on similar project, I just wish I have found this sooner because it would make a lot of things better. Although, there is always chance for V2

ivmilicevic
Автор

What am I doing wrong to keep getting:

(1046, 'No database selected') ??

I have set all the info currently, I went on phpmyadmin and changed the info for user and it works there perfectly...

xconkersx
Автор

What about people registering with the same username or email? You didn't implement a restriction for that. How would you do it? Do you need to query the database to check if the values are already in?

one_lettersandnumbers
Автор

I'm having problems with the registration view. It does not display errors like if the passwords fields are not the same it doesn't say anything; If i click sumbit it doesn't show any flash message. Everything in the code is same to his code... I can't really see why is doing this, any suggestion?

tizianonatali
visit shbcf.ru