Upgrading template¶
Upgrading your project to be up-to-date with this template is a primary goal.
This is achieved by manually applying diff to your existing code.
diff can be viewed from the project’s README.md.
See an example.
When the upgrade is applied just change the commit hash in your template to the most recent one.
Versions¶
Sometimes, when we break something heavily, we create a version. That is required for our users, so they can use old releases to create projects as they used to be a long time ago.
However, we do not officially support older versions. And we do not recommend to use them.
A full list of versions can be found here.
Migration guides¶
Each time we create a new version, we also provide a migration guide. What is a migration guide? It is something you have to do to your project other than just copy-pasting diffs from new versions.
Goodbye, poetry!¶
This version requires a manual migration step.
You need to install
uv, see uv installationYou need to convert your
pyproject.tomldependencies from[tool.poetry.dependencies]to[project] dependencies(PEP 621 format)You need to convert dev dependencies from
[tool.poetry.group.dev.dependencies]to[dependency-groups] dev(PEP 735 format)You need to remove the
[build-system]section referencingpoetry-coreYou need to remove all
[tool.poetry]sectionsDelete
poetry.lockand runuv lockto generateuv.lockUpdate
docker/django/Dockerfileto useuvinstead ofpoetry
You can use the migrate-to-uv tool to automate most of these steps.
Goodbye, pipenv!¶
This is an older migration step from pipenv to poetry.
You need to install
uvYou need to create a new
pyproject.tomlfile withuv initYou need to adjust name, version, description, and authors meta fields
You need to copy-paste dependencies from
Pipfiletopyproject.tomlYou need to set correct version for each dependency in the list, use
">=x.y,<z.0"notationCreate
uv.lockfile withuv lock
It should be fine! You may, however, experience some bugs related to different
dependency version resolution mechanisms. But, uv does it better.