mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
use package name in get_distribution function call
This commit is contained in:
parent
601d52218a
commit
4fb5928a9c
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