mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Merge pull request #261 from dat2/patch-1
fix version string at runtime
This commit is contained in:
commit
3305de960a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue