expephalon/core/helpers/expephalon.py
Klaus-Uwe Mitterer 31b0eed298 Add currency management
Fix color picker
Add exchange rate updater submodule
Fix logging in celery
A few invoicing fixes
HTTP request class
Navigation/URL updates
2020-06-03 12:35:23 +02:00

10 lines
No EOL
200 B
Python

from django.conf import settings
from git import Repo
def version_string():
repo = Repo(settings["BASE_DIR"])
try:
return repo.head.commit.hexsha
except:
return "unknown"