mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 05:54:01 +03:00
remove bad version guessing mechanism
This commit is contained in:
parent
742e9289cf
commit
fbc483e854
|
@ -4,14 +4,6 @@ __version__ = '0.2.3'
|
|||
VERSION = __version__ # synonym
|
||||
|
||||
from djangorestframework.builtins import DjangoRestFrameworkSite
|
||||
|
||||
try:
|
||||
VERSION = __import__('pkg_resources') \
|
||||
.get_distribution('gargoyle').version
|
||||
except Exception, e:
|
||||
VERSION = 'unknown'
|
||||
|
||||
|
||||
from django.utils.importlib import import_module
|
||||
|
||||
import imp
|
||||
|
|
Loading…
Reference in New Issue
Block a user