Klaus-Uwe Mitterer
31b0eed298
Fix color picker Add exchange rate updater submodule Fix logging in celery A few invoicing fixes HTTP request class Navigation/URL updates
10 lines
No EOL
200 B
Python
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" |