aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r--wkhtmltopdf/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wkhtmltopdf/__init__.py b/wkhtmltopdf/__init__.py
index f6d2a9d..4fd8e77 100644
--- a/wkhtmltopdf/__init__.py
+++ b/wkhtmltopdf/__init__.py
@@ -1,4 +1,7 @@
-from .utils import *
-__version__ = (0, 1, 1)
+import os
+if 'DJANGO_SETTINGS_MODULE' in os.environ:
+ from .utils import *
+
+__version__ = (0, 1)
def get_version():
return '.'.join(map(str, __version__))