In this short guide, you will learn how to upgrade to the next version of Vanty Starter Kit using Jetbrains Pycharm. From our experience, the standard code from the latest updated version can be quite different from the modified code in the project. One of the easiest ways to update is to use the GUI to compare files in your editor instead of doing it via the CLI. Let's get started.
On the advantch.com dashboard:
Open your project in Pycharm
git branch upgrade-branch-name
&& git checkout upgrade-branch-name
Pycharm will open a diff tab with the list of files and changes. You can now go through the files one by one and make changes.
You can highlight the files you want to update and click the green 'synchronize' button (|>) to update them. See this page from JetBrains on how to update specific files.
VSCode - VSCode also provides a diff check that you can use, but it seems to be only on a file-by-file basis.
Migrations files - if you have added any changes to your models, the best is to skip migrations altogether to avoid conflicts and only add the changes from the models.py file. After you are done with the update, run make migrate
to update migrations.
We are working on a method to improve the update process. We will keep you posted.
Success
Error
Warning
Info