diff --git a/phantom_pdf/generator.py b/phantom_pdf/generator.py index a8f9bd8..0eff94a 100644 --- a/phantom_pdf/generator.py +++ b/phantom_pdf/generator.py @@ -4,7 +4,10 @@ from subprocess import Popen, STDOUT, PIPE import os import phantom_pdf_bin -import urlparse +try: + import urlparse +except ImportError: + import urllib.parse as urlparse import uuid from django.conf import settings