move product version to settings file

This commit is contained in:
Robert Einsle 2018-02-10 16:35:14 +01:00
parent 8657fab3c1
commit 8aa4f5cc48
2 changed files with 2 additions and 1 deletions

View File

@ -159,6 +159,7 @@ EMAIL_PORT = 25
URL_LOCATION_PROCESSOR = 'http://127.0.0.1:8000/billard/process_locationdata'
PRODUCT_INFO = 'CAROM-DEV'
PRODUCT_VERSION = 'v 0.5.0'
try:
from local_settings import *

View File

@ -51,7 +51,7 @@
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userMenu">
<!-- <a class="dropdown-item" href="#">My account</a> -->
<a class="disabled dropdown-item" href="#">v0.5.0</a>
<a class="disabled dropdown-item" href="#">{% settings_value "PRODUCT_VERSION" %}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'logout' %}">Log out</a>
</div>