src/hdabo/context_processors.py
author ymh <ymh.work@gmail.com>
Wed, 11 Apr 2018 12:19:47 +0200
branchdocumentation
changeset 693 09e00f38d177
parent 266 825ff4d6a8ac
permissions -rw-r--r--
Add hdabo/hdalab documentations
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49
55e5f8a878ae add the version context_processor and correct css to display it correctly
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import hdabo
55e5f8a878ae add the version context_processor and correct css to display it correctly
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
55e5f8a878ae add the version context_processor and correct css to display it correctly
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
def version(request):
55e5f8a878ae add the version context_processor and correct css to display it correctly
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    return { 'VERSION': hdabo.get_version() }
55e5f8a878ae add the version context_processor and correct css to display it correctly
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5