diff --git a/phantom_pdf/generator.py b/phantom_pdf/generator.py index a8f9bd8..b445ca6 100644 --- a/phantom_pdf/generator.py +++ b/phantom_pdf/generator.py @@ -84,7 +84,7 @@ def _build_url(self, request): domain = netloc return '{protocol}://{domain}{path}'.format( protocol=protocol, - domain=domain, + domain=getattr(settings, 'PHANTOMJS_DOMAIN', domain), path=path) def _save_cookie_data(self, request):