Join Code Jana --- Flask Discord Server : / discord .
Share your issues & problems & chat with everyone regarding Python Flask web-framework. Hi Coders, db.session.add('Use Postgres Database for Scalable Web App'). In this video, we'll learn about Flask SQLAlchemy Postgres.
You'll learn several new things in this video. So make sure to watch it till the end.
✔🐍 Learn Flask in 1 Video: Flask Complete Tutorial: • Python Flask Tutorial || 2022 Complete Pyt...
Join our Python Flask Student Community on Whatsapp - https://chat.whatsapp.com/ICZeAvDH95T...
Videos in Flask Tutorial Series:
#0 - Flask App Intro -
• Python Flask Tutorial for Beginners - #0 F...
#1 - Flask Installation & Best VSCode Extensions for Python -
• #1 Python Flask Tutorial - Flask Installa...
#2 - Layout & Website Structure in Flask App -
• #2 Python Flask Tutorial - Layout and Webs...
#3 - Adding Bootstrap, Custom CSS, JS in Flask App -
• #3 Python Flask Tutorial - Adding Bootstra...
#4 - Creating Navbar Using Bootstrap v5 in Flask App -
• #4 Python Flask Tutorial - Creating Navbar...
#5 - Bootstrap 5 Cards in Flask App -
• #5 Python Flask Tutorial - Bootstrap 5 Ca...
#6 - Creating Slider with Bootstrap 5 in Flask App -
• #6 Python Flask Tutorial - Creating Slider...
#7 - Register & Login Page with Flask WTF -
• #7 Python Flask Tutorial - Register and Lo...
#8 - Flask SQLAlchemy Tutorial - Creating Database in 3 Steps with SQLite - • #8 Python Flask Tutorial - Flask SQLAlchem...
#9 - Flask SQLAlchemy Postgres Tutorial -
• #9 Python Flask Tutorial for Beginners - ...
#10 - Flask Bcrypt Authentication -
• #10 Python Flask Tutorial - Flask Bcrypt A...
#11 - Flask Login Tutorial - Manage User Session in 3 Steps -
• #11 Python Flask Tutorial - Flask Login Tu...
#12 - Flask Forgot Password Setup - Create Itsdangerous Token in 3 Steps - • #12 Python Flask Tutorial - Flask Password...
#13 - Flask Upload Image - Easily Upload Image to Database -
• 13. Flask Upload Image - Easily Upload Im...
#14 - Flask SQLAlchemy Relationship - One to Many Relation -
• #14 Flask SQLAlchemy Relationship - One to...
#15 Deploy Flask App to Heroku - Flask Tutorial Series - Gunicorn Server -
• #15 Deploy Flask App to Heroku - Flask Tut...
#16 Deploy Flask App to AWS -
• #16 - Deploy Flask App to AWS - Host Flask...
Please support me via Patreon: / codejana
For beginners SQLite is a good choice but if you want to deploy your app online & want to scale your application later at some point then creating a Postgres database is preferable.
That's after covering SQLAlchemy SQLite in my earlier video, I am covering SQLAlchemy Postgres in this one.
So, these are the commands that you are going to be needing to work with Postgres:
1. Create a new user
create user 'username' with password 'password';
2. Assign roles and attributes to user
alter user 'username' with superuser;
alter user 'username' with createdb;
3. Switch user
\c 'database name' 'username'
4. Create database with new user
create database 'database name';
5. \du - display all users
6. \l - list all tables in a database
7. \q - quit psql shell.
Please support my efforts by contributing through Patreon:
/ codejana
Please Like, Share and Subscribe to Code Jana.
Thanks for Watching & I'll see you in the next one.
En esta página del sitio puede ver el video en línea #9 Python Flask Tutorial for Beginners - Flask SQLAlchemy Postgres Tutorial - Postgres Flask de Duración hora minuto segunda en buena calidad , que subió el usuario Code Jana 11 octubre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,568 veces y le gustó 72 a los espectadores. Disfruta viendo!