Using proper file structure with SQLAlchemy and how to add data to db
问题 I am trying to build a simple blogging platform to learn Python and Flask. I am using SQLAlchemy to connect to a Postgres db hosted on Heroku and flask_s3 to serve static files from an AWS bucket. Im mostly following along from this: https://gist.github.com/mayukh18/2223bc8fc152631205abd7cbf1efdd41/ All was going well, it is correctly hosted on Heroku and connceted to AWS S3 bucket, ready to go. I am stuck however on how to add blog posts to the database through some kind of form or route