Merge pull request #261 from dat2/patch-1

fix version string at runtime
This commit is contained in:
Michael K 2020-10-07 15:20:56 +00:00 committed by GitHub
commit 3305de960a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
__version__ = get_distribution("django-configurations").version
except DistributionNotFound:
# package is not installed
__version__ = None