Build a User Login System With Flask-Login, Flask-WTForms, Flask-Bootstrap, and Flask-SQLAlchemy

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 400

  • @prettyprinted
    @prettyprinted  4 ปีที่แล้ว +9

    Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql

    • @AvdheshkrSingh
      @AvdheshkrSingh 4 ปีที่แล้ว

      Sir I need some help ...when I am providing the username and password its show invalid username and password again and again it is not getting restrict to dashboard.....page.
      While all thing thing is working well.

    • @najeebpasha4794
      @najeebpasha4794 4 ปีที่แล้ว

      @@AvdheshkrSingh reregister with a new id. if it still doesnt let you check your database connection and user details validation logic

    • @andraspozsgai8928
      @andraspozsgai8928 4 ปีที่แล้ว

      OperationalError: (sqlite3.OperationalError) no such table: user
      [SQL: INSERT INTO user (username, email, password) VALUES (?, ?, ?)]
      [parameters: (u'Macilaci', u'xxxx@gmail.com', 'sha256$b3KQePmY$9a764718353b18eed8c3474f3ceae86ee915444c7c8fb77997818b9460515512')]
      (Background on this error at: sqlalche.me/e/e3q8) :( The database is exist, iam followed your method. Why ???

    • @andresquiroga5354
      @andresquiroga5354 3 ปีที่แล้ว

      @@AvdheshkrSingh Do you have the answer?

  • @prettyprinted
    @prettyprinted  7 ปีที่แล้ว +11

    Thanks for watching everyone. Check out prettyprinted.com for Flask courses.

  • @mohammad.alkrad
    @mohammad.alkrad 4 ปีที่แล้ว

    This video was suggested to us by our professor. Thank you so much!

  • @Jiligriv
    @Jiligriv 2 ปีที่แล้ว

    Thank you very much! Been looking for something like this for three days! Everything I need is here!

  • @klipart1986
    @klipart1986 7 ปีที่แล้ว +2

    Anthony, you're an excellent teacher!
    Thx for the clearest explanations.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Thanks for the compliment!
      Thanks for watching my videos.

  • @timothypulliam2177
    @timothypulliam2177 7 ปีที่แล้ว

    I just want to say thank you. These videos are simply top notch.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว +1

      You're welcome! Thanks for taking the time to watch.

  • @jameswaweru5234
    @jameswaweru5234 3 ปีที่แล้ว +1

    This just saved my school project. You're an awesome tutor! Thank you so much!!!

  • @szymonf5554
    @szymonf5554 7 ปีที่แล้ว +4

    I've already got some project in my job, You channel is really helpful. Thank You so much bro :)

  • @GathuaMwenyewe
    @GathuaMwenyewe 7 ปีที่แล้ว +5

    Awesome tutorial, I have been crawling along trying to put together this particular set of functionality. This is an excellent piece

  • @docmalc47
    @docmalc47 3 ปีที่แล้ว

    Thanks so much bud! I learned a ton of what I was missing after spending days on this.

  • @JohnnyMetz
    @JohnnyMetz 7 ปีที่แล้ว +6

    Amazing video! Covered a ton and demonstrated everything really well. I've been looking for an example using SQLAlchemy, WTForms, Flask-Bootstrap, Flask-Login for quite some time

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว +3

      I'm glad you found it useful!

  • @mariag.3844
    @mariag.3844 4 ปีที่แล้ว +2

    Great tutorial! I was able to follow along easily and use this to build my application and I feel like I have a good understanding of Flask!

  • @ayushjain6604
    @ayushjain6604 3 ปีที่แล้ว

    That is hands down the most awesome and easy tutorial I have ever seen. Thank you for this tutorial!

    • @srishtijaiswal7079
      @srishtijaiswal7079 2 ปีที่แล้ว

      This is most recent comments

    • @srishtijaiswal7079
      @srishtijaiswal7079 2 ปีที่แล้ว

      I want to know is it still working

    • @srishtijaiswal7079
      @srishtijaiswal7079 2 ปีที่แล้ว

      Please let me know

    • @ayushjain6604
      @ayushjain6604 2 ปีที่แล้ว

      @@srishtijaiswal7079 I last used this tutorial in November 2021. It was working fine.

    • @srishtijaiswal7079
      @srishtijaiswal7079 2 ปีที่แล้ว

      Actually I had to deploy my website using heroku and I am using sqlite and sqlalchemy , so I want to ask , jo hmara database hai yha pr vo local server pe store hota hain ya remote server pe for example inhone jo website bnayi hain simple login and registeration agr hm ise host kr de using heroku to database kha store hoga?

  • @precorps
    @precorps 7 ปีที่แล้ว

    Another fantastic intro. Thanks Anthony!

  • @damonbi
    @damonbi 7 ปีที่แล้ว +1

    Best coverage on the topics, very through and practical

  • @robsonsilv4.
    @robsonsilv4. 7 ปีที่แล้ว

    Suspense screen when deleting the data hahaha. Awesome video bro, it's clarify me a lot!

  • @zahouijean-yves1528
    @zahouijean-yves1528 4 ปีที่แล้ว +8

    Hey man, I can see that all html templates inherit from bootstrap/base.html but I can see this particular file nowhere. Where does this come from ? And 2nd question, what's the purpose of importing bootstrap/wtf.html in the file ?
    Great tutorial by the way !
    Thank you

  • @himanshuchandra2808
    @himanshuchandra2808 7 ปีที่แล้ว

    Finally i got what i was looking for. Thanks a lot for saving my day. I owe you one.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      I'm glad I could help! Thanks for watching.

  • @chrisharrel8837
    @chrisharrel8837 7 ปีที่แล้ว +29

    This video just saved me a few days of research. How can I donate to your beer/pizza fund?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว +32

      I'm glad it helped!
      You can buy one of my courses whenever I finally release one. Give me a few years.

    • @shobinp5789
      @shobinp5789 7 ปีที่แล้ว +3

      Open a patreon page or something.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว +9

      I just saw my old comment.
      I have one premium course now on prettyprinted.com
      I plan on release a couple in the coming month as well.

  • @rahulsailwal4025
    @rahulsailwal4025 4 ปีที่แล้ว

    Thank you Anthony. It was an awesome video

  • @dmynerd78
    @dmynerd78 7 ปีที่แล้ว +2

    Thank you so much for this video! Been looking for this exact thing and have only just found it.
    One thing I would suggest is having a requirements.txt in the github repo that way you can just import all the needed dependencies right from the get go :)

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Yeah, I'll start doing that.
      Thanks for watching.

  • @nch77884
    @nch77884 7 ปีที่แล้ว

    This is just vow! So much covered in such a short time. Really just what I needed and most other python developers who want to be able to create a webapp with these must have and important features.

  • @newyorkblingz1879
    @newyorkblingz1879 4 ปีที่แล้ว +1

    i cant use sqlite3 as its not recognized as an internal or external command

  • @flat9safety
    @flat9safety 7 ปีที่แล้ว

    love that you're using ubuntu under the hood. Been using it a ton myself in Win10... Makes things much more bearable :-)

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Yeah, it's great. I love not having to dual-boot.

  • @alecafelmala4521
    @alecafelmala4521 5 ปีที่แล้ว

    thank you so much for this project ..more power to this channel

  • @juanmitilo2668
    @juanmitilo2668 3 ปีที่แล้ว

    Excellent video bro. Thanks.

  • @jacopobellosi1214
    @jacopobellosi1214 3 ปีที่แล้ว +1

    GUYS!!
    update for who is not working!!
    copy the code below is your login is not working
    -------------------------------------------------------------------------
    class User(db.Model, UserMixin):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(15), unique=True)
    email = db.Column(db.String(50), unique=True)
    password = db.Column(db.String(80))

  • @jonnygovish1689
    @jonnygovish1689 7 ปีที่แล้ว

    You got me out of a dark place.....great stuff

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      I'm glad the video helped. Thanks for watching!

  • @marcio9081
    @marcio9081 6 ปีที่แล้ว +3

    Great video!! Thank you very much! You are doing an awesome work

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว +1

      You're welcome! Thanks for watching.

  • @chrispuppe
    @chrispuppe 7 ปีที่แล้ว

    Exactly what I need for my project. Great job!

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Perfect timing!
      Thanks for watching.

  • @kjxchannel800
    @kjxchannel800 5 ปีที่แล้ว

    I'm from Indonesia. And i'am love it !

  • @brendanlydon5272
    @brendanlydon5272 2 ปีที่แล้ว +1

    I don't think you created an area in sign_up() where you checked if the user/email already existed in the database so the creation of a new user would be rejected and they would have to input different information. If you did could someone direct me to that point in the video?

  • @olegsomov6635
    @olegsomov6635 7 ปีที่แล้ว

    Thank you for such a great video! It's just awesome! I was so upset because I started doing something with flask and I couldn't make all the modules play together. But after your video I feel a lot better, and of course it's just a perfect implementation of the such a hard tutorial! I wish I could buy a course, I think it's something amazing! Again, Thank you so much!

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Hey Oleg, I'm glad the video was able to help you!
      I do sell courses on prettyprinted.com You can check them out there if you're interested.

    • @olegsomov6635
      @olegsomov6635 7 ปีที่แล้ว

      Pretty Printed I also interested, do you do all this project( "Pretty Printed) by yourself, or you have a team?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Until recently it was just me, but I just hired someone to help me with video production.

  • @mrj1299
    @mrj1299 5 ปีที่แล้ว +2

    Rly nice content Anthony. I watched a lot of other stuff, but yours is one of the best. Watch his Flask Course. 49$ is rly nothing. I had a python course for 2499$ and it was not worth it.

  • @DeepakYadav-xp2wp
    @DeepakYadav-xp2wp 3 ปีที่แล้ว

    @Pretty Printed do you use DVORAK, though?

  • @mckanecaman9096
    @mckanecaman9096 2 ปีที่แล้ว

    Really perfect !!! Thanks a lot.

  • @RegisSouza-k7h
    @RegisSouza-k7h 5 หลายเดือนก่อน

    Awesome man, thanks for that!!

  • @ytubeindia2
    @ytubeindia2 3 ปีที่แล้ว

    not sure why but I'm not able see error messages after the fields. Am I missing anything in newer version of WTForms??
    if I inspect I have the error div tag with invalid-feedback class, it has display none. so my understanding is WTForms should take care of display right?? any help will be great.

  • @ryanroline7181
    @ryanroline7181 3 ปีที่แล้ว

    Great tutorial! Thank you!!

  • @rje4242
    @rje4242 4 ปีที่แล้ว

    thank you so much Anthony! great tutorial.

  • @GarethThomasMEng
    @GarethThomasMEng 7 ปีที่แล้ว +3

    Great intro. Do you think that it would be good to use a password seed to help further obscure the password, and does that library support it?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว +2

      Werkzeug already uses a salt when hashing the password:
      werkzeug.pocoo.org/docs/0.11/utils/#module-werkzeug.security
      I do recommend making things as secure as you are willing to though.

    • @carlosazuaje8381
      @carlosazuaje8381 7 ปีที่แล้ว +1

      bcrypt is good for this!

  • @futgaming17
    @futgaming17 2 ปีที่แล้ว

    Thanks for this course

  • @michaelcastillo4402
    @michaelcastillo4402 3 ปีที่แล้ว

    Thanks for this tutorial
    Is a great resource. I hope to watch more videos about Python.

  • @paulcal3500
    @paulcal3500 ปีที่แล้ว

    Hi,
    It seems that the user class isn't being added to the database. When I search for it with the '.tables' line, 'users' isn't there. Any idea why?

  • @sneffetsd
    @sneffetsd 2 ปีที่แล้ว

    Why dont you use submit button from the wtform?

  • @andresquiroga5354
    @andresquiroga5354 3 ปีที่แล้ว

    I need ur help, I've been making a project for U. Im using the check_password_hash, it converts my password and everything is fine but when I go to enter it gives me an invalid username or password,
    I would appreciate your help

  • @lukerbs
    @lukerbs 3 ปีที่แล้ว

    Can you show us how to update/change a password for an existing account? Thanks!

  • @TheAnkitaPatel
    @TheAnkitaPatel 4 ปีที่แล้ว

    Im trying to validate username with jquery n ajax, but getting error while trying to get username before WTForm submit, how to get username value?

  • @artemankudovich2854
    @artemankudovich2854 7 ปีที่แล้ว

    Awsome video . For a complete beginner in python this is helping alot. Thank you.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You're welcome. Thanks for watching!

    • @artemankudovich2854
      @artemankudovich2854 7 ปีที่แล้ว

      Hi im sorry to bother you but im having a minor issue at 14:35 (Testing login form submit)
      Form is identical to your github
      as i submit it it gives me this error
      TypeError: __init__() takes at most 2 arguments (3 given)
      and this seems to happen at
      if form.validate_on_submit():
      i changed it to see what data is being passed from my form and this is what i get
      {'username': u'username', 'csrf_token': u'Ijk1NjYxZmI1NTk1MzE0NmY4NzM4NWIyNjVhNjI2MDJiMjQxZWM0NzAi.C_cuBQ.ApYdhQeaiRi3SLacZbuzKhVqpWo', 'password': u'secretsecret', 'remember': False}
      im pretty sure code is identical but it doesnt seem to perform same way.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      It's hard to know without seeing the code you have. You can email me at anthony@prettyprinted.com and I can take a look.

  • @alymtsumi4895
    @alymtsumi4895 2 ปีที่แล้ว

    Hi Anthony, I keep getting an error saying wtf is not defined in my signup.html, I have flask-bootstrap installed, what could be the reason?

  • @LatinDanceVideos
    @LatinDanceVideos 4 ปีที่แล้ว +1

    Curious. This content is 2 years old now. What's the current best practice?
    I've seen single sign on systems that work with Gmail/Facebook etc. (Could not get them to work) so what to do??

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      If you want to use usernames and passwords, then something like this is still a good start. I'll cover single sign on more in the future though.

  • @chitranshasiwal6791
    @chitranshasiwal6791 3 ปีที่แล้ว

    How you are able to run??I mean how u r using it on the server??

  • @nch77884
    @nch77884 7 ปีที่แล้ว

    Video is created very well. Can you also share which tools did you use to create this youtube video?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      I used Movavi Screen Capture Studio.

  • @animeshmishra4282
    @animeshmishra4282 3 ปีที่แล้ว

    If i want to implement that @loginrequired functionality then what is the other way to do . Should i have to maintain a session in order to achieve that functionality ? Please i need your reply for once.

  • @ranjandeb1159
    @ranjandeb1159 4 ปีที่แล้ว

    well explained...thank you.

  • @apostolosbitos6627
    @apostolosbitos6627 2 ปีที่แล้ว

    Does the @login_required actually work on a server (not localhost) ? I am randomly losing the session and being redirected to the login page.

  • @Goorigon
    @Goorigon 7 ปีที่แล้ว

    Thanks, Pretty Printed! Awsome tutorial!

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @paulnelson8187
    @paulnelson8187 4 ปีที่แล้ว

    I constantly get an error when i try from app import db - says no module named 'app'. I am running this python from the base of my IntelliJ project. This is in Windows. Any help appreciated.

  • @LongNguyen-je9we
    @LongNguyen-je9we 5 ปีที่แล้ว

    Thank you so much. Your channel is awesome.

  • @hu5niiiii
    @hu5niiiii 3 ปีที่แล้ว

    Can i use python storage (shelve) in this for user login ? and if so , is it still the same steps ?

  • @yigafred409
    @yigafred409 7 ปีที่แล้ว +1

    Great tutorial as always from you

  • @matheussantos-qv8ws
    @matheussantos-qv8ws 2 ปีที่แล้ว

    how do I put sql server in 'SQLALCHEMY_DATABSE_URI' ?

  • @projectgroot9338
    @projectgroot9338 3 ปีที่แล้ว

    The best tutorial

  • @ufukaltan7693
    @ufukaltan7693 3 ปีที่แล้ว

    Great video !!!

  • @rafaels7161
    @rafaels7161 6 ปีที่แล้ว

    Great video as always! How do you use previously stored data in db for the dashboard? Would you add in another query in the login route to grab the personalized data and then send it back to the dashboard template before the redirect?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      I would query for the data in the same route that has the dashboard template. Then just pass the data to the template.

  • @vishnups482k
    @vishnups482k 3 ปีที่แล้ว

    When I enter email id in signup form and after submitting it i'm getting an " AttributeError: 'Nonetype' object has no attribute 'EmailNotValidError'". Please help me to solve this problem?

  • @tuannvm
    @tuannvm 7 ปีที่แล้ว

    Thanks for the videos! Could you keep posting new videos weekly? I think it's great if you could share some more tips & tricks on your experience of using flask at work?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      I'm working on expanding Pretty Printed in other ways, but I do want to get back to posting multiple videos per week soon.

  • @simplepycodes
    @simplepycodes 5 ปีที่แล้ว +2

    Never mind man, i fixed it :D thanks again.

  • @jomein6412
    @jomein6412 7 ปีที่แล้ว

    Great video. Is there a way to create it using local bootstrap files instead which would be located in the static folder?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Yes, you just add the files to your static folder and then add them to your link and script tags in the template using url_for.

  • @misbahhasan6272
    @misbahhasan6272 2 ปีที่แล้ว

    "Install 'email_validator' for email validation support" i am getting this error

  • @llamasarus1
    @llamasarus1 7 ปีที่แล้ว

    Great video! Do you suggest that I write out all this code every time I make a new app or should I just type it all out one time and keep it on github so I could pull it when I need it for my next site?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      If it works for you, keeping it in Github as a base for each new project will save you a ton of time.

    • @llamasarus1
      @llamasarus1 7 ปีที่แล้ว

      So to recap: pulling it and configuring it is more important to get this down by memory?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Both are important, and you want to understand it well enough to be able to produce it yourself. But once you do understand it, there's no reason to rewrite it from scratch every single time.

  • @ysmanman
    @ysmanman 4 ปีที่แล้ว

    This is good, but to use this video we need templates, e.g. login.html, how can we get this file?

  • @suruchisinha5952
    @suruchisinha5952 7 ปีที่แล้ว

    Many thanks. Really very helpful.. I am new to flask. Can you suggest how to generate the secret key?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You can use the os module.
      import os
      app.config['SECRET_KEY'] = os.urandom(24)

  • @ernestodemenibus2803
    @ernestodemenibus2803 3 ปีที่แล้ว

    FYI for the new people when doing the app.config['SQLALCHEMY_DATABASE_URI'], make sue to add 3 not 4 '/' its changed

  • @leehighxd8134
    @leehighxd8134 7 ปีที่แล้ว +2

    Thank you!
    And I met some error when I try this.When "return User.query.get(int(user_id))",it shows that "NotImplementedError: No 'id' attribute - override 'get_id'".
    I searcher the Internet,and I found that "login_user calls get_id on the user instance".I use "user_id" instead of "id" in class User, so it can't find id.
    I solved this by overriding get_id to return user_id in class User.
    Hope it can help people who meet the same error.
    (Not native speaker of English, if I express clearly?)

  • @brayoutrash742
    @brayoutrash742 7 ปีที่แล้ว

    Thx a lot ! simple and clear explanations

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You're welcome. Thanks for watching.

  • @dair919
    @dair919 3 ปีที่แล้ว

    Thanks for making this!

  • @soumyapurohit7109
    @soumyapurohit7109 4 ปีที่แล้ว +1

    Thanks for this amazing video on login via Flask and explaining step by step throughout the video. I followed your steps until the login page and I am stuck on the part where you check if username and password is taken by the login form. When I hit sign in, it doesn't redirect me to display my username and password. Can you please help me out.

    • @cat-oss8861
      @cat-oss8861 4 ปีที่แล้ว

      I had the same error. I put this code in my template to debug it:
      {% if form.errors %}
      {{ form.errors }}
      {% endif %}
      So finally my error was that I was not following the correct length for the username or password (username -> Length(min=4, max=15), password -> Length(min=8, max=80) )

  • @zahirjacobs716
    @zahirjacobs716 7 ปีที่แล้ว

    Another great tutorial. Thank you so much!

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @musicismotion
    @musicismotion 4 ปีที่แล้ว +1

    Just cannot get the user table to work in sqlite. I can see it is there and been created but when I enter the info in the signup page it says table does not exists. Anyone else had this?

    • @andraspozsgai8928
      @andraspozsgai8928 4 ปีที่แล้ว

      Yes. I have, same problem. Are you fix that yet? Can you help me?

  • @jakubunold5750
    @jakubunold5750 4 ปีที่แล้ว

    Great, complete, very well explained tutorial. Keep up the good work!

  • @TheChendoBeats
    @TheChendoBeats 4 ปีที่แล้ว

    How do I query for Username and Email when Logging In???

  • @buildwithmacduff699
    @buildwithmacduff699 4 ปีที่แล้ว +1

    jinja2.exceptions.TemplateNotFound: bootstrap/base.html
    I got this error, I really cant find the base html

    • @buildwithmacduff699
      @buildwithmacduff699 4 ปีที่แล้ว +1

      I have resolved , I had to install Flask Bootstrap

  • @aboagyeking9131
    @aboagyeking9131 3 ปีที่แล้ว

    Really great video, There is just one concept that i haven't quite get through. And that the difference between this type of generating user login and the use of sessions. If you could explain this it would be of great help. Thanks again for an exelent video

  • @sunohonmy4024
    @sunohonmy4024 3 ปีที่แล้ว

    ayo, do u have an updated video on this???

  • @jimmyenglish0215
    @jimmyenglish0215 2 ปีที่แล้ว

    thanks for your tutorial!!!!!!!!!!!!!!

  • @olegsomov6635
    @olegsomov6635 7 ปีที่แล้ว

    Thank for the video! I'm looking now for how to organize user permission? I've seen two of them available - Flask-User and Flask-Principal. What do you think is better?(Or maybe combine them?)

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Flask-User will probably be easier to use for your purposes.

  • @vinitkumarkshatri6676
    @vinitkumarkshatri6676 5 ปีที่แล้ว +1

    where is the database?

  • @blossombabalola1234
    @blossombabalola1234 4 ปีที่แล้ว

    someone, please help me out here, I'm pretty much on track, but my login is not showing everything I'm returning.

  • @vinodsagar2412
    @vinodsagar2412 5 ปีที่แล้ว

    very nice tutorial...amazing video

  • @poojitharavuri2943
    @poojitharavuri2943 3 ปีที่แล้ว

    Hello, I have created User class and when done db.create_all() but in sqlite when i type .tables -- no tables are there, what could be the reason

    • @shwoomerxyz
      @shwoomerxyz 3 ปีที่แล้ว

      Make sure that when you are using sqlite3, it's the absolute path of the database you're using.
      for example:
      >>> sqlite3 C:\User\your-user\login-system\database.db
      I did that and it worked.

  • @ikhsanrahman9703
    @ikhsanrahman9703 6 ปีที่แล้ว

    how to make dashboard.html ? and how if we download dashboard template and put in flask ?

  • @profsameer5197
    @profsameer5197 4 ปีที่แล้ว

    Awesome man

  • @brendanlydon5272
    @brendanlydon5272 2 ปีที่แล้ว

    I have @login_required under my route for my 'dashboard' calling it 'home' instead but I can still access the home page without logging in? Any one know how to resolve this issue?

  • @subhrobera3476
    @subhrobera3476 6 ปีที่แล้ว

    TypeError: hidden_tag() missing 1 required positional argument: 'self'
    The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
    To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
    You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
    dump() shows all variables in the frame
    dump(obj) dumps all that's known about the object
    What should I do??

  • @ysmanman
    @ysmanman 4 ปีที่แล้ว

    Any way to get login.html?

  • @elmcapp6032
    @elmcapp6032 4 ปีที่แล้ว

    could you please add forgot password feature

  • @apachejim8308
    @apachejim8308 7 ปีที่แล้ว

    life savior, keep it up

  • @timvogt7088
    @timvogt7088 7 ปีที่แล้ว +1

    Great! How to build this as an crud system where an admin can create and delete users and user have their own restricties area?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว +1

      The easiest way would be to use Flask-Admin, which I already have videos on.

  • @shreytripathi184
    @shreytripathi184 4 ปีที่แล้ว

    Thank you very much for this video. I had one doubt: if a user signs up once again with the credentials with which he has already signed up once, the program shows up an error on the browser. How can we render a custom HTML web page if the user tries to sign up with the same credentials again?

    • @nassabrie6673
      @nassabrie6673 4 ปีที่แล้ว +1

      I didn't run into this issue because in my Registration form, I defined a "is_unique_username' and used that function on the form data in the register view to make sure the username is unique. If it isn't unique, I just have a flashed message "username taken'. Hope this helps.