Can you query the current InvenTree version from a Plugin? #6104
Replies: 2 comments 5 replies
-
from InvenTree.version import inventreeVersion, inventreeApiVersion
sw_version = inventreeVersion()
api_version = inventreeApiVersion() |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
LavissaWoW
-
@SchrodingersGat Speaking of versions, has there been any considerations made in terms of preventing the Django backend from starting if you have pending migrations, outdated packages etc? Possibly a command line warning etc? Like, you really should run I spoke with a colleague who uses InvenTree, and he'd made the mistake of pulling down new commits, forgetting he had done so, and having a hard time working out why InvenTree wouldn't run properly. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As the question says.
Is it possible for a plugin to check the current InvenTree version?
This would be highly useful for plugins having functionality that can, may, or have changed over the course of releases.
Beta Was this translation helpful? Give feedback.
All reactions