It was awesome thanks a lot just a little input in for loop if you replace{{ todo.id }}with {{loop.index}} it ll automatically update the indices if you delete any in the middle or top
@popcycleism
2 жыл бұрын
This was very satisfying. The topping was your introduction to Semantic UI giving more possibilities from using bootstrap. Now to learn how to upload photos! Thank you for this tutorial.
@syedmuhammadraza9534
3 жыл бұрын
Just completed this TODO-APP really helpful appreciated!
@goodgrow_io
4 жыл бұрын
This video is amazing. Best guide I've seen so far.
@patloeber
4 жыл бұрын
Glad you like it :)
@LearnBr0
8 ай бұрын
Thanks Patrick! I'm starting with Python and found your tutorial quite useful. Keep up the good content 👏
@papasmoke3311
2 жыл бұрын
One thing i don’t understand is: why does he create a new database every time the program gets run. wouldn’t it be better to check if a db exists?
@notsphinxz
2 жыл бұрын
I love the Semantixc UI! It is very easy to style the page! And I liked your video as well and subscribed! Amazing content! Keep it up the good videos! It helps on my programming ❤️🙏
@TheAmazinRaven
Жыл бұрын
To anyone having issues w the SQLAlchemy thingy or the app not running properly add this below your todo class (under it, not in it): with app.app_context(): db.create_all() A really kind stranger in a Discord helped me solve this & I wanted to pay it forward. :)
@ataberkpektas8784
Жыл бұрын
sir i didnt understand you. where will i write this?
@stephontidd7051
11 ай бұрын
Thanks, this solution still works.
@hakusho04
3 жыл бұрын
exactly what i need to start my flask journey thanks
@patloeber
3 жыл бұрын
nice!
@crazyGodLikE
3 жыл бұрын
I like your pace and you explain concepts well. Thank you.
@patloeber
3 жыл бұрын
Glad it was helpful!
@KeyserTheRedBeard
2 жыл бұрын
impressive upload Python Engineer. I killed that thumbs up on your video. Continue to keep up the exceptional work.
@rishabkumar9578
4 жыл бұрын
You are a Gem in a bag of rocks Mr.Python !!!
@patloeber
4 жыл бұрын
Thanks a lot!
@wamiqmushtaq2825
7 ай бұрын
Patrick would love u to do a separate tutorial on using flask sql alchemy, it is much needed!!
@joeygaller8761
Жыл бұрын
GOOD DAY SIR I MAY BE HAVING A PROBLEM ON THE DB_SQLITE TABLE I WONT AUTOMATICALLY CREATE ANOTHER FOLDER I FOLLOW ALL YOUR INSTRUCTIONS BUT IT WONT JUST CREATE ANOTHER FOLDER AND JUST HAVE AN ERROR
@I_am_pradeep
4 жыл бұрын
Great tutorial. Very Helpful. Thank You So Much!
@patloeber
4 жыл бұрын
Thanks!
@gillarajieprasatya812
3 жыл бұрын
i dont know why, but i now im falling in love with flask
@mctosima
2 жыл бұрын
As of Flask-SQLAlchemy 3.0, all access to db.engine (and db.session) requires an active Flask application context. db.create_all uses db.engine, so it requires an app context.
@ashiwal9910
Жыл бұрын
I am stuck there can u pls guide me?
@gokulkrishnan4721
Жыл бұрын
@@ashiwal9910 Just above db=SQLAlchmey (app) add this line: with app.app_context(): -> By doing this you will get instance folder 📁 in that you can see .db file -> If you don't want to do this just use SQLAlchmey version 2.5.1 (pip install flask-SQLAlchemy==2.5.1) you can easily push data from the python shell (ex: >>> from app import db >>> db.create_all() ) I hope this helps you :(
@princeakpolo1074
Жыл бұрын
just above -> app = Flask(__name__) add this line below it: app.app_context().push()
@mohammedchoupaqee5530
Жыл бұрын
It is an excellent course tutorial with professional Engine Good Luck ,
@swoopsavvy7560
16 күн бұрын
@TheAmazinRaven, Really great, you solved it!!!!
@adaum79
2 жыл бұрын
Perfect! Simple and clear, like always.
@creyssu
3 жыл бұрын
Bro you help me a lot with the flaskAlchemy, thank you !
@patloeber
3 жыл бұрын
Happy to help
@ombrebyaarti3024
2 жыл бұрын
Thanks for sharing…it help to improve.
@crystal-arts-1
2 жыл бұрын
Thank you for the awesome tutorial!
@kshitijgupta6175
3 жыл бұрын
In my system, VSCode doesn't show it just shows [] this. Any suggestions how to tackle this problem?
@bryanchambers1964
2 жыл бұрын
I'm very confused right from the start (1:45). Where are you entering: git mkdir flask-todo I think its just in your terminal right? I did this in my terminal and it says 'mkdir is not a command'. I installed 'git' too so I don't understand this. If take out 'git' and just enter 'mkdir flask-todo' it works but my "Hello World" website doesn't work in the following steps.
@aidangasim
4 жыл бұрын
its amazing,useful concise and clear,i am eternally thankful ))
@patloeber
4 жыл бұрын
Thank you! Glad you like it :)
@muhammadzubairbaloch3224
4 жыл бұрын
dil khush kar detay ho bhai. really nice work.
@patloeber
4 жыл бұрын
Thanks!
@itsblueworld3591
2 жыл бұрын
A very well explained tutorial, totally understandable..
@malcolmrichardson
2 жыл бұрын
Thank you! Great tutorial!
@ammarsajjid8258
2 жыл бұрын
Thank You for the video.
@alexandergdansk
2 жыл бұрын
Super! Thanx for it!
@liker2356
2 жыл бұрын
Amazing video helped a lot!!
@junivensaavedra882
2 жыл бұрын
Excellent content. Thank you very much. :D
@cngetich37
2 жыл бұрын
Great Tutorial
@SA-oj3bo
3 жыл бұрын
Thanks, but how to deploy to a cloud server?
@gowthambhat1498
2 жыл бұрын
great tutorial
@aryakrishna4932
3 жыл бұрын
awesome tutorial ! thanks for this!
@patloeber
3 жыл бұрын
thanks for watching!
@mateen161
4 жыл бұрын
Very helpful content. Thank you!
@patloeber
4 жыл бұрын
Glad you like it :)
@dhineshbabu9376
4 жыл бұрын
Awesome Tutorials.. Simple and Neat .. :)
@patloeber
4 жыл бұрын
Thanks!
@PythonDevelopment
2 жыл бұрын
This greate content! Awesome
@ssk-ct7cr
2 жыл бұрын
Very good tutorial! I wish to add the functionality of deleting all the items at once by the click of a button ('Clear todos', for example). Does someone know how I could do this?
@THOMASKUTTYREJI
3 жыл бұрын
thank you so much .... an amazing video...
@patloeber
3 жыл бұрын
glad you like it!
@sakshisaxena8913
3 жыл бұрын
any tutorial on flask with Postgres sir?
@novaria
3 жыл бұрын
SQLalchemy allows you to simply connect to a postgreSQL database AFAIK.
@emmachuksudeji9477
2 жыл бұрын
thanks again
@harryayce11
2 жыл бұрын
What about implementing "create","delete" etc in an async manner?
@ashishbhardwaj8609
Жыл бұрын
Hello Sir. Great tutorial, especially for a beginner. I created the app following the tutorial, but, when I tried deploying it using Vercel, it showed "500 Internal Server Error". However, it works perfectly fine when I tested it using the terminal on my local server... Please provide guidance
@kushlawatidevi1101
11 ай бұрын
try using wsgi as output gateway
@bryanchambers1964
2 жыл бұрын
Could you mind please explain why you Visual Studio instead of say Jupyter. I tried following this in a Jupyter notebook but the program crashed and couldn't create a web page. It would have been helpful if you gave a little explanation about why you are using Visual Studio and whether it must be done exactly like that. I did everything the same way in visual studio and got the same error again.
@akashpardeshi5721
2 жыл бұрын
I'm stuck on one error Windows is not support crypt any Idea how to solve it? I'm using VS Code and Windows 10
@abdullah-sx2qf
2 жыл бұрын
Hey, how would I make it so each user that logins in has their own task app?
@himanshushukla787
3 жыл бұрын
Hey man nice tutorial. I made the app by following the tutorial but in my app the title of the todo always says title instead of the title that I put in to the text box and I can't figure out what is wrong.
@OmaimaHasan
10 ай бұрын
Hey, i was following along up until adding a database. SQLAlchemy was installed but now its not working when i run the app.py file
@OmaimaHasan
10 ай бұрын
its saying that RuntimeError: Working outside of application context.
@eccomi21
3 жыл бұрын
Thanks for the tutorial! However im running into a slight issue. Im using pycharm as my IDE. i was not able to install FlaskSQLAlchemy the normal way. it would throw an error. So i had to resort to using the command "python -m easy_install SQLAlchemy" So i managed to install it with that command, but now despite it being in the right venv, showing in the list and all when trying to import it it throws the following error: "No module named 'flask_sqlalchemy'" Even after googling, all the answers i found that matched my IDE and OS (being win10) i still cant figure out what the problem is. Do you have any idea what the problem could be?
@eccomi21
3 жыл бұрын
solved my own question. make sure to follow his tutorial letter by letter. theres two different flask sql alchemy packages.
@efeakaroz6686
4 жыл бұрын
I love your vid. Also what is your vscode theme
@patloeber
4 жыл бұрын
Thanks! It's the night owl theme...
@I_am_pradeep
4 жыл бұрын
can you please tell me how to validate form in this ?
@rachit6099
4 жыл бұрын
Thankyou for this video just wanted to know which theme are you using for visual studio code
@patloeber
4 жыл бұрын
Have a look at my newest video :) There I show my VS Code setup. It's the night owl theme
@shreyashimukhopadhyay6354
4 жыл бұрын
Could you please also show how to build Machine learning Apps using flask..
@patloeber
4 жыл бұрын
Yes, I do have one more with pytorch and flask right now...
@anithapoly6849
2 жыл бұрын
How can this be done in sqlite3 database in pycharm
@prajwalm.s7976
11 ай бұрын
At 14:32 I am getting this error - File "F:\flask-todo\venv\lib\site-packages\werkzeug\local.py", line 508, in _get_current_object raise RuntimeError(unbound_message) from None RuntimeError: Working outside of application context. This typically means that you attempted to use functionality that needed the current application. To solve this, set up an application context with app.app_context(). See the documentation for more information.
@shobbyduncan1607
4 ай бұрын
did yyou manage?....i still have the same error
@TheFuentes5551
4 жыл бұрын
I do have to ask a question. What is better to learn Flask or Django? Expecialy for begginer
@patloeber
4 жыл бұрын
It depends on what you want to do. Both are great frameworks. Flask is more lightweight and easier for beginners. However, if you want an app with user management/authentication, then I would go with Django since it takes care of a lot of things for you.
@TheFuentes5551
4 жыл бұрын
@@patloeber the only reason I ask is because I saw online many advice Django because its easy and very powerful. And as you said Django does does a lot of things for you. So now as a noob i dont know on which to focus on? Or maybe I should learn both? I did saw all your videos and they did help me a lot by the way. I have good understandings of "intermediate" Python skills
@Stone8age
4 жыл бұрын
Nice job dude, any plans for a django one?
@patloeber
4 жыл бұрын
Django crash course is on my list too :)
@pavelow36
3 жыл бұрын
amazing
@patloeber
3 жыл бұрын
Thank you!
@railotrailot521
4 жыл бұрын
Hi, where are u from ? interesting accent)))thanks a lot for good content!
@patloeber
4 жыл бұрын
Germany ;)
@sife-i9n
3 жыл бұрын
@@patloeber gut ;)
@bryanchambers1964
2 жыл бұрын
Why whenever I try to learn stuff like this all I ever get are error messages and I never get the correct result even if I copy everything exact?
@ssk-ct7cr
2 жыл бұрын
Don't know which error you're having... I got an error related to context. With a slight code modification I got the result expected. I'm sending the code, in case you got the same error: Right at the end of the app.py file: if __name__ == '__main__': with app.app_context(): db.create_all() app.run(debug=True) Hope it helps!
@bryanchambers1964
2 жыл бұрын
@@ssk-ct7cr Thanks, I'll try that when I get a chance and let you know if it worked.
@ssk-ct7cr
2 жыл бұрын
@@bryanchambers1964 Great! ;)
@shri1345
3 жыл бұрын
Hey,I have a quite of an issue on kali linux saying that, directory not found when I try to use /venv/bin/activate
@patloeber
3 жыл бұрын
maybe on linux the command is slightly different than on Mac
@shri1345
3 жыл бұрын
No actually I found out that the files were hidden .But now it works ;)
@sawaito
Жыл бұрын
Lol, flask is a lot easier than django. I don't know why i'm learning django and not flask 🤨
@tamtonaquib
2 жыл бұрын
Lol tf was that voice
@jbruce87
Жыл бұрын
Not getting "db.sqlite" to create. I will post my code below. working on a Mac like the video. even tried adding the "with app.app_context():" that other commenters have suggested. no luck
@jbruce87
Жыл бұрын
from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) @app.route('/') def index(): # show all todos return render_template('base.html') if __name__== "__main__": with app.app_context(): db.create_all() app.run(debug=True)
@jbruce87
Жыл бұрын
Now im getting this error: Traceback (most recent call last): File "/Users/jb/Desktop/PyFlaskAppThing/app.py", line 9, in class Todo(db.model): File "/Users/jb/Desktop/PyFlaskAppThing/venv/lib/python3.9/site-packages/flask_sqlalchemy/extension.py", line 988, in __getattr__ raise AttributeError(name) AttributeError: model
@iamdavidmohan
Жыл бұрын
@@jbruce87 Had the same problem. Clear the Flask package and the Flask-SQLAlchemy package --> I just cleared everything in the [environment]\Lib Folder which I installed since I started the tutorial Then Install pip install Flask==2.1.0 pip install -Iv Flask-SQLAlchemy==2.5.1 Using this Versions the DB was created
@princysingh1398
Жыл бұрын
Get this error while activate env...someone help me out error:- PS C:\Users\THIS\Pictures\flask-todo> \Python27\Scripts\virtualenv.exe venv \Python27\Scripts\virtualenv.exe : The term '\Python27\Scripts\virtualenv.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + \Python27\Scripts\virtualenv.exe venv + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (\Python27\Scripts\virtualenv.exe:String) [], CommandNotF oundException + FullyQualifiedErrorId : CommandNotFoundException
@sendyourbae
3 жыл бұрын
hi. i have some problems with this tutorial. i want to add another field called name, so this todo apps have todo field and name field for someone who writes it. how can i insert the name into the app.py and display it? i will wait for your reply. thank you
Пікірлер: 116