You might encounter this problem as I have when I was moving away from using Windows as my main Operating System, looking to install a linux based distribution. The issue with having dynamic disks is that the the new OS system you want to install will not recognise them, and you cannot proceed with the install or resize them or anything. WARNING: Following this guide will result in deleting all of the data on your hard drive. Make sure that your data is backed up before proceeding.What do you needIf your use case is the same as mine, moving from Windows to another OS it's best that you have 2 USB pen drives ready, but don't fret if you just have one USB drive it will just make the process longer. So basically what you need is:
Steps:
Congratulations your disk is now just a basic (b..) disk! You can proceed now with installing another OS on your machine just fine. You can:
Posted
Horia Gug
by
|
Many To Many relationship in Flask App using SQLAlchemy Flask-WTForm and QuerySelectMultipleFieldIn this example we'll be using two entities, The many to many relationship adds an association table between the two model classes, this helper table is strongly recommended to not be a model but an actual table. Let's start with our models:
The association table However just having an association table is not enough to connect the two entities together so the Remember to migrate and update your db after making alterations.
Next let's move on to our forms. We'll be focusing on the form for creating a post and associating many categories to it.
How the Moving on to the view function:
Nothing too fancy here, we create a new post with the data inputted in the form, and then append each of the selected categories to it and save it in the db. Lastly the html file. Simply:
The implementation of the create category form and view goes along the same lines so I'll leave it for the readers homework.
Posted
Horia Gug
by
|
Welcome to my blog! The idea for this sparked as a side project for me to learn flask but since deployment was a chapter in my learning path it got published!
I'm a software enthusiast currently working as a quality assurance automation specialist by day and software developer by night, currently living in Helsinki.
You can find me on Twitter , GitHub , or via email at: hg_hel@protonmail.com
Thank you for visiting and enjoy!