Just a note..The customer field should not be unique as it is a name. I had initially planned on using an email field which would probably be a better idea, but it's fine for the tutorial. Hope you guys like. If your not a fan of Python, I apologize, just trying to be a bit diverse. If there are other languages and frameworks you are interested in, let me know. Other than JS, that is a given :)
10:52 "You donot need a frontend framework for everything" Give this guy a cookie :) Huge fan of your channel, this is my first python flask postgresql stack project. I knew about python flask, but was alien to postgresql with python. You made my day, thank you
Yes! I’ve been loving Python and Flask as of late. The thing I love about your channel is that you introduce so many technologies that while I am still on the job hunt, I still get a high level to intermediate overview on many things until I find dev position where I can finally specialize in specific technology. Off to wake up my Heroku account!
I saw a couple of guys one from Kenya and the other from Somalia on the comments and I was really happy to see more third world countries students grinding. Love your work Brad, you have helped and keep on helping me alot. Love from Sudan ❤
Brad, thank you so much for this tutorial. I learned a lot that I can apply to an application I am working on for a company to capture leads. I also got some experience with having to add the psycopg2 and flask installs again to my Python directory -- didn't quite take the first time. I found that I was able to get the info I needed by searching online for solutions to the error messages I was getting. This is always good practise. I really appreciate the full circle of tasks that this tutorial offers: data capture, save to database, create database elements within the python app and finally setting up on an Heroku server. Much appreciated. Mary
Thanks so much for the video! I am a novice developer who couldn’t normally make a deploy of his application along with the database. All videos talk about how to upload a simple application to the server, and then I finally could do everything! Thanks to the author for the excellent and useful content! Like undoubtedly !!!
AkiraToriyama13 i think maybe what he means is Python is used for sooo many things and web is not really its most popular use case. However, i think it is a great language for web
I can see the reason why I need to be a patron but not now because I have bought at least three of Brad courses on Udemy, its simply awesome but next budget is to be a patron
I only recently discovered your channel. While my primary experience is Java, your videos have become a great resource for me to expand my knowledge of other technologies that I routinely deal with. Thanks for posting these.
thanks a lot.. i dont know to say it ..it took me 2 days to figure out this and find the right tutorial. i am so happy seeing my website online. thanks again.
Great stuff Brad. Thank you for explaining some of the Python concepts from the angle of a javascript-trained dev. JS has been my focus until now so, Python is making me think about things differently. I knew this would be a big help and it didn't disappoint!
If you update your css file and your page doesn't show the changes, here is the solution: Flask sets cache control headers on static resources, and your browser will cache those files up to 12 hours. Your options are: 1. Use an incognito browser window (private browsing mode in other browsers) to force your browser to ignore the cache for a specific session. Each time you open a new incognito tab or window, the cache should be invalidated for that session. 2. Set the SEND_FILE_MAX_AGE_DEFAULT configuration directive to a shorter value; it is set to 43200 but you can set it to 0 if you really want to. 3. Add a cache buster query parameter to your static URLs; if your static URLs end with ? your browser will reload the resource if that random value ever changes. You could do this by hand each time or you can use this Flask snippet to override the url_for() function to add such a value for you based on the file modification time.
Really i'm asking Today is friday and the clock was based 20 for somali local time Brad traversy wasn't upload the video at that time i got the notification Brad Traversymedia has uploaded new video how much i love your tutorials.
Man I have been trying this for three weeks, encountered with heroku pg:psql --app error, finally get it to work I really appreciate this tutorial, thanks alot.
We want a Flutter / React Native Video. Love you channel and thankyou for being an awesome teacher ! Once I get my new job, You are gonna have a Jumbo Treat, That's a Promise !
Great video, actually tried to follow it a few times and after a couple of attempts got it done! pretty stoked. Now I need to modify it to be the app I want it to be, ha! one note, the 'dialect name' in the heroku database link needs to be changed to start 'postgresql://..." just as it does in the local database address. I guess there's been an update. This was a show stopper for my most recent failed attempt, which was so frustrating having gotten through 51 minutes out of 53 successfully, then have an error I can't figure out. But I got it eventually and thought I'd add this comment to the long list here.
Brad you are so great, i love your lessons. You are a true inspiration for many of us. I hope you will keep doing that work, I already bought my first Udemy course from you. Cheers from Brazil!
Hi Brad! I find your videos really informative and useful. Has helped me a lot. Could me please make a tutorial how to do a react frontend with a flask backend? That'll be really helpful. Thanks.
Hi everyone, i followed the tutorial well along but at the end when deploying to heroku. I fall into some error and the heroku link doesn’t work. Please help.
Hello Brad and views. I think I followed this tutorial to the "T", but Im getting this error "sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: role "postgres" does not exist" at the part of the video where Brad is creating the database. On my pgAdmin 4 dashboard my users is "postgres" just like Brad has. Im confused. Thanks
Hi. I have a quick question. Why would you use Postgres vs Firebase for example? Because is simpler to use ? Or is there any other reason. I would like to get your thoughts about it? Thank you so much for sharing
Just what I chose for this project. The 2 are much different though because Firebase is a service hosted elsewhere and postgres is something you install and manage locally. Both have their benefits. I really like firebase for small-mid sized apps. It offers a lot (auth, storage, etc), but for a large production app, you probably want to go with a relational db or something like MongoDB. Just my opinion
@2:29 on submit, you can see the "/submit" is still present in the URL. I've found that if you then refresh the page, flask tries to re-do the POST (and then gives an error due to the unique constraint). How can you instead just go to /success or to /index after a successful POST? Thanks!
It is the first tutorial that I made and it work everything that you explain. Thanks for share knowledge! How can I change mailtrap with gmail or similar? Thanks a lot!
First of all i love your videos, As I know you shouldn't install psycopg and psycopg-binnary at the same time . For your local development environment psycopg-binary is ok. For deploying to a server psycopg is a better chose.
One question: how did you make pipenv install and lock so fast? Could it be that you already have them installed or have the waiting period cut from the video?
Thank you. This is great! One question: SQL Alchemy seems to have broken the code here with regard to Heroku and the line in the app.config. Do you have a solution for this?
Hello Brad, great video! Will you make another Django video? I tried following along to to you old one but it seems some of it is deprecated. Thank you and keep up the great work!
Great tutorial and tons of inspiration, thanks once again Brad! Though having some issue running the app once deployed to Heroku. Some Google-around tells me I'm not alone experiencing this. The log just gives me an errorcode=H10 (App crashed), complaining about the path "/" and "/favicon", Status=503. Someone else had this problem?
I had a similar issue the problem for my case was I had installed new packages that I did not add to my requirements.txt.Not sure if this could be the case but I hope you solved the issue
Finishing on codeacademy soon. This is the first web app dev I’d like to commit to. Personal take on it with similar usability in mind. Any possibility of mild supervision towards achieving my modification? If I get past login integration...
Just a note..The customer field should not be unique as it is a name. I had initially planned on using an email field which would probably be a better idea, but it's fine for the tutorial. Hope you guys like. If your not a fan of Python, I apologize, just trying to be a bit diverse. If there are other languages and frameworks you are interested in, let me know. Other than JS, that is a given :)
What about Java or C# with .NET ?
Love your videos man! Keep up the good job! :)
Mate keep the python coming. Love it
I am so interested in Python, help us growing Brad.
Love ❤️ and respect 🙏 from India 🇮🇳
I was just about to comment that... "Can you not have several customers with the same name?" Other than that, it's a nice tutorial!
Java
17:17 Database starts
38:19 Deployment to Heroku
tnxnxnxnxnx
thank you brother!
@@shadedeveloping4705 Glad I could be of help :)
thxxxxxxxxxxxxxxxxxxx
@@mehregankbi wellssssssssssssssssssss
10:52 "You donot need a frontend framework for everything" Give this guy a cookie :)
Huge fan of your channel, this is my first python flask postgresql stack project. I knew about python flask, but was alien to postgresql with python. You made my day, thank you
Yes! I’ve been loving Python and Flask as of late.
The thing I love about your channel is that you introduce so many technologies that while I am still on the job hunt, I still get a high level to intermediate overview on many things until I find dev position where I can finally specialize in specific technology.
Off to wake up my Heroku account!
yep i agree, did brads stuff while job hunting and it paid dividends big time
BRAD TRAVERSY I HAVE ONE MESSAGE FOR YOU:
YOU ARE THE MAN!!!!! Your tutorials are the best on UA-cam Thanks a lot bro
You literally saved my recruitment project. I normally don't write comments on YT, but I love you :D Thanks!
I saw a couple of guys one from Kenya and the other from Somalia on the comments and I was really happy to see more third world countries students grinding.
Love your work Brad, you have helped and keep on helping me alot.
Love from Sudan ❤
thank u doda zd
Brad, thank you so much for this tutorial. I learned a lot that I can apply to an application I am working on for a company to capture leads. I also got some experience with having to add the psycopg2 and flask installs again to my Python directory -- didn't quite take the first time. I found that I was able to get the info I needed by searching online for solutions to the error messages I was getting. This is always good practise. I really appreciate the full circle of tasks that this tutorial offers: data capture, save to database, create database elements within the python app and finally setting up on an Heroku server. Much appreciated. Mary
Wow thank you brad ..from Kenya...You have helped all of us very very much..Asante sana!-Swahili word for thank you
this helped me a lot. This morning I didn't know anything about web development with Python/Flask. Not that I'm an expert now, but I feel like one :)
You are my hero whenever I need a crash introduction to a new technology
Such a crisp tutorial building a deployable project from scratch. Love it.
Great tutorial. I spend nearly 6 hours to finish this. All is working. I learn a lot with heroko, database, upload etc and more. Thank you so much!
Thanks so much for the video! I am a novice developer who couldn’t normally make a deploy of his application along with the database. All videos talk about how to upload a simple application to the server, and then I finally could do everything! Thanks to the author for the excellent and useful content! Like undoubtedly !!!
i just deployed my first app thanks to this well articulated video
Im glad that u still believe in python as a web solution.
Thank you.
I really like both Flask & Django. Python is my second love after JS
Why you say "still"?? I started learning django like two months ago... Is it considered old these days django framework?
AkiraToriyama13 i think maybe what he means is Python is used for sooo many things and web is not really its most popular use case. However, i think it is a great language for web
@@TraversyMedia Hey brad would python now be a better choice than PHP for the web?
This is all beginners need in a video. You walk us through a full circle creating a complete application! Amazing
I can see the reason why I need to be a patron but not now because I have bought at least three of Brad courses on Udemy, its simply awesome but next budget is to be a patron
Thanks :) I appreciate that
I only recently discovered your channel. While my primary experience is Java, your videos have become a great resource for me to expand my knowledge of other technologies that I routinely deal with. Thanks for posting these.
Hey man, thanks! I just built my first web app with your help. keep up the good work :)
Heroku is the easiest platform to deploy to, but very expensive in the end. Dokku is a free alternative that you can you with Digital Ocean.
I have heard of it but never tried it, Ill give it a shot.
Try pythonanywhere.com, is inexpensive. Also to note the control panel is simple and easy to use.
thanks a lot.. i dont know to say it ..it took me 2 days to figure out this and find the right tutorial. i am so happy seeing my website online. thanks again.
Brad, always great to see new content. I appreciate the diversity of the content.
Great stuff Brad. Thank you for explaining some of the Python concepts from the angle of a javascript-trained dev. JS has been my focus until now so, Python is making me think about things differently. I knew this would be a big help and it didn't disappoint!
I always come here to view the deployment gist😄
I second the react native recommendation. Thank you for everything you do!
Brad, you are the best! Flask is pure magic. Thank you!
I am so interested in Python, help us grow Brad.
Love ❤️ and respect 🙏 from Sikkim, India 🇮🇳
Thank you so much for this great video. This is just what I needed to help me with a web app I am building for my PhD project. God bless you.
This what I've been looking for so long.. thank you for the video sir..
from your new subscriber (Indonesia)
This tutorial is amazing on deployment to heroku
If you update your css file and your page doesn't show the changes,
here is the solution:
Flask sets cache control headers on static resources, and your browser will cache those files up to 12 hours.
Your options are:
1. Use an incognito browser window (private browsing mode in other browsers) to force your browser to ignore the cache for a specific session. Each time you open a new incognito tab or window, the cache should be invalidated for that session.
2. Set the SEND_FILE_MAX_AGE_DEFAULT configuration directive to a shorter value; it is set to 43200 but you can set it to 0 if you really want to.
3. Add a cache buster query parameter to your static URLs; if your static URLs end with ? your browser will reload the resource if that random value ever changes. You could do this by hand each time or you can use this Flask snippet to override the url_for() function to add such a value for you based on the file modification time.
Really i'm asking Today is friday and the clock was based 20 for somali local time Brad traversy wasn't upload the video at that time i got the notification Brad Traversymedia has uploaded new video how much i love your tutorials.
So you are enjoying this great tutorial and others all the way from Somalia?that's great.
Brad tutorials are really my daily cup of tea
hhh aaryee sxb waaanku salaamey sxb from hargeisa
Waan idin salaamayaa akhyaareey. Keligay baan ismoodaye, show ehelku macallinkan wax waa kawada bartaan. Aad baan idiinku farxay runtii. Aan wada shaqayno. Odaygan Brad ah waa reer Boston, aqoon badan ayuuna ka sheekeeyaa. Dhawaan baan rajaynayaa in aan sameeyo channel afkeena ah oo technology-ga aan kaga warramo. Kulanti xiiso leh.
Maasha'allh #SomaliaTeam Aad baan nii salaamayaa Asxaabey Aad ban ugu faraxsanahay in aan halkan kawada faa'idaysanyno
Brad about time you did this video...thanks
Good day Brad love from Nigeria Africa
Hello
@@ogunkayodeoluwaseun9348 bro
This is pure gold. Thank you very much!
The information in this video was very illustrative. Thank you for sharing.
Man I have been trying this for three weeks, encountered with heroku pg:psql --app error, finally get it to work I really appreciate this tutorial, thanks alot.
We want a Flutter / React Native Video. Love you channel and thankyou for being an awesome teacher !
Once I get my new job, You are gonna have a Jumbo Treat, That's a Promise !
This tutorial was a game changer for me. THANK YOU.
Very fun project. Thank you so much for putting this together!
Really helpful video! Thanks Brad! Going to apply this knowledge to my own app now.
HI, Instead of getting all the columns in GET request, How could I get only specific columns from the postgres table?
great works. I view more than 5 times. all work very well.😀
Thanks Brad for such a wonderful tutorial. It really helped a lot. Much Appreciated!!
Always love your videos. Learned a lot of stuff! Thank you very much!
Great video, actually tried to follow it a few times and after a couple of attempts got it done! pretty stoked. Now I need to modify it to be the app I want it to be, ha!
one note, the 'dialect name' in the heroku database link needs to be changed to start 'postgresql://..." just as it does in the local database address. I guess there's been an update. This was a show stopper for my most recent failed attempt, which was so frustrating having gotten through 51 minutes out of 53 successfully, then have an error I can't figure out. But I got it eventually and thought I'd add this comment to the long list here.
This was a huge help. Excellent video!
Thanks, man. great as always! You just saved me a lot of time.
You are truly a life saver! Thank you man
You're the man. Thank you Brad
Noooo brad!!! Just when I decide to focus on mern stack rather than flask and python, you upload this and now begins my never ending dilemma
No harm in messing around with both :) Have your main stack, but I think dabbling in other technology strengthens your overall skill as a dev
Traversy Media 100% agreed! Nothing was gonna stop me from watchig this video and following along anyway. Love your videos as always
...Just what I needed!!! Many Thanks.
Dude! You’re awesome. Thank you so much for this!!
Brad you are so great, i love your lessons. You are a true inspiration for many of us. I hope you will keep doing that work, I already bought my first Udemy course from you. Cheers from Brazil!
yes more python videos, its actually a hot coding item now
Great stuff sir..Well done
Thank you... I learned so much from this video 😊😊😊
Very good tutorial, thank you.
Could you make a more current one please? HEROKU no longer has a free option.
Hi Brad! I find your videos really informative and useful. Has helped me a lot. Could me please make a tutorial how to do a react frontend with a flask backend? That'll be really helpful. Thanks.
Hi everyone, i followed the tutorial well along but at the end when deploying to heroku. I fall into some error and the heroku link doesn’t work. Please help.
Try adding path.
Thank you Brad!! Very helpful tutorial! Keep it going please... Maybe a series on Flask and React (w/ hooks)?
I got something that maybe could help you ua-cam.com/video/s4vMgOfbBzs/v-deo.html
Hello Brad and views. I think I followed this tutorial to the "T", but Im getting this error "sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: role "postgres" does not exist" at the part of the video where Brad is creating the database. On my pgAdmin 4 dashboard my users is "postgres" just like Brad has. Im confused. Thanks
THANK YOU SO MUCH! THIS VIDEO HELPED ME
Brad can read my mind!
We can also make newsletter with this tutorial...
Im still waiting for a flutter or react native video
I know I know :) Alot of people are...I have been slacking on mobile stuff. It's coming
@@TraversyMedia Please pick Flutter over React Native!
@@TraversyMedia Take your time brad...whatever you bring out, its gonna be awesome anyways :)
vote for both of them still didnt tried both of them cause of the android studio...am dude with 4gb of ram pc and intel pentuim cpu
hopefully a flutter video
Hi. I have a quick question. Why would you use Postgres vs Firebase for example? Because is simpler to use ? Or is there any other reason. I would like to get your thoughts about it? Thank you so much for sharing
Just what I chose for this project. The 2 are much different though because Firebase is a service hosted elsewhere and postgres is something you install and manage locally. Both have their benefits. I really like firebase for small-mid sized apps. It offers a lot (auth, storage, etc), but for a large production app, you probably want to go with a relational db or something like MongoDB. Just my opinion
Traversy Media Thank you so much for your response. It helped me understand better. Thanks for sharing as well.
Thanks for the outstanding tutorial!
Thank sir it helped my mini project : )
@2:29 on submit, you can see the "/submit" is still present in the URL. I've found that if you then refresh the page, flask tries to re-do the POST (and then gives an error due to the unique constraint). How can you instead just go to /success or to /index after a successful POST? Thanks!
same problem :(
awesome tutorial. learnt a lot. thanks
Hey Brad, do you have an article that shows which order to take your courses in order to become a full stack developer? Thanks!
Its quite intimidating, but still very well explained. How long did it take you to make this app when you made it for yourself?
It is the first tutorial that I made and it work everything that you explain. Thanks for share knowledge! How can I change mailtrap with gmail or similar? Thanks a lot!
God bless you thanks a lot
is it possible needed to follow the sqlalchemy command for example db.Column instead on Create table_name (infection) traditional commands ?
First of all i love your videos,
As I know you shouldn't install psycopg and psycopg-binnary at the same time .
For your local development environment psycopg-binary is ok.
For deploying to a server psycopg is a better chose.
wait you can use {{ }} JS openers in regular HTML files? it doesn't require a template lang like ejs or handlebars?
Works great! Thank You!!
you made my life easy thanks
Really cool video!
I want more ;)
One question: how did you make pipenv install and lock so fast? Could it be that you already have them installed or have the waiting period cut from the video?
Great video! Quite explanatory, thank you for your work.
such a lovely video that what do i say..........love it guy u r awesome
Hi, I know this is an older video. But what program are you using to write the code in?
great tutorial! thank you!
where do you come across new technologies ? awesome video
Great tutorial!! Thank You!!
Thank you. This is great! One question: SQL Alchemy seems to have broken the code here with regard to Heroku and the line in the app.config. Do you have a solution for this?
I found the solution. The database name needs to have postgresql not postgres.
Do we need to install pipenv ?? I am unable to run the virtual environment in vscode. Would it work without virtual environment ??
Would you recommend deploying a python app with AWS at all?
Fantastic tutorial brad, really liked it. Is it possible for you to create similar video to deply a django web app.
Hello Brad, great video! Will you make another Django video? I tried following along to to you old one but it seems some of it is deprecated. Thank you and keep up the great work!
Why he didnt put the id into __init__ function at 23:31
I have a traceback when i've tried to execute db.create_all(). ValueError: source code string cannot contain null bytes
I have a question how can you dislay on the web application if anything else like if the comments match or if the rating matches with another customer
Great tutorial and tons of inspiration, thanks once again Brad! Though having some issue running the app once deployed to Heroku. Some Google-around tells me I'm not alone experiencing this. The log just gives me an errorcode=H10 (App crashed), complaining about the path "/" and "/favicon", Status=503. Someone else had this problem?
hey man even i am experiencing this issue. you got any solution?
getting the same error, were you able to figure it out?
i had same problem, so i just copied all his github content, and problem dissapeared, idk what was the cause
I had a similar issue the problem for my case was I had installed new packages that I did not add to my requirements.txt.Not sure if this could be the case but I hope you solved the issue
Finishing on codeacademy soon. This is the first web app dev I’d like to commit to. Personal take on it with similar usability in mind.
Any possibility of mild supervision towards achieving my modification? If I get past login integration...
thank you thank you thank you, thanks a ton, you save me