Databases and notebooks!

I worked pretty well today. My understanding of Flask is getting better and I feel that I am getting somewhere. But before talking about that, a brief update on the podcast.

Justin Avery, A digital specialist with an analogue secret in his back pocket

Like every two weeks, those last few days have seen the rush for the publication of the latest episode of Bloc Thinking. It's a good one, we interviewed a web developer who decided that his next step was going to create notebooks. Like physical, tangible, touchable notebooks. It's a great insight in the life of someone who just focus on solving the problems he sees in front of him.


Still following the Flask Mega-Tutorial, I went through the Database chapter and started the User Login one. I still focus on understanding enough to move forward confidently. I am not blitzing, but I'm neither going too slowly. I know I will get back to all those context anyway. The tutorial uses SQLite, which is perfect in my context.

What I did:

  • Flask-SQLAlchemy and the concept of Object Relational Mapper (ORM)
  • Database settings as config
  • Database models setup
  • Init Database
  • Migrate databases
  • Setup databases relationships
  • Querying
  • Flask Shell command
  • Password hashing
  • Flask-Login package
  • Logging Users In

Cool commands learned

  • Exit git logs with q

  • Retrieve the history of commit in chronologic order

git log --reverse --oneline
  • Rewriting the most recent commit message
git commit --amend
  • Remove file from previous staging
git reset HEAD path/to/unwanted_file
  • Remove file from previous commit without cancelling the change
git reset --soft HEAD^ 

git reset HEAD path/to/unwanted_file

git commit -c ORIG_HEAD  
Show Comments