Поменял название системы в футере и ввел версионностьы
All checks were successful
Deploy MES Core / deploy (push) Successful in 11s
All checks were successful
Deploy MES Core / deploy (push) Successful in 11s
This commit is contained in:
0
shiftflow/templatetags/__init__.py
Normal file
0
shiftflow/templatetags/__init__.py
Normal file
9
shiftflow/templatetags/app_meta.py
Normal file
9
shiftflow/templatetags/app_meta.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django import template
|
||||
from django.conf import settings
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def app_version() -> str:
|
||||
return str(getattr(settings, 'APP_VERSION', '0.0.0'))
|
||||
Reference in New Issue
Block a user