elgeopaso.jobs.templatetags.version module

Application views.

Learn more here: https://docs.djangoproject.com/fr/2.2/topics/http/views/

elgeopaso.jobs.templatetags.version.version_date(date_format='%d/%m/%Y')[source]

Return the last modification date based on git. If git folder does not exist, an empty string is returned instead.

Renvoie

last modification date

Type renvoyé

str

Example

# from a Django template, first load the custom templatetag
{% load version %}

# in a text div
<p>
  My awesome project - Last updated: {% version_date %}
</p>
elgeopaso.jobs.templatetags.version.version_number()[source]

Return the project version as number.

Renvoie

version number

Type renvoyé

str

Example

# from a Django template, first load the custom templatetag
{% load version %}

# in a text div
<p>
  My awesome project - version {% version_number %}
</p>