diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index 90e91e167f..38689df26b 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -5,6 +5,7 @@ over and above the built-in Django tags. """ import os +import sys from django.utils.translation import ugettext_lazy as _ from django.conf import settings as djangosettings @@ -114,6 +115,14 @@ def inventree_title(*args, **kwargs): return version.inventreeInstanceTitle() +@register.simple_tag() +def python_version(*args, **kwargs): + """ + Return the current python version + """ + return sys.version.split(' ')[0] + + @register.simple_tag() def inventree_version(*args, **kwargs): """ Return InvenTree version string """ diff --git a/InvenTree/templates/about.html b/InvenTree/templates/about.html index 7b023295d1..358d468ca8 100644 --- a/InvenTree/templates/about.html +++ b/InvenTree/templates/about.html @@ -34,6 +34,11 @@ {% trans "API Version" %} {% inventree_api_version %}{% include "clip.html" %} + + + {% trans "Python Version" %} + {% python_version %} + {% trans "Django Version" %}