From 3079a38cd4657b02350e460b27df2084fcbb5483 Mon Sep 17 00:00:00 2001 From: Hedde van der Heide Date: Tue, 24 May 2016 15:35:23 +0200 Subject: [PATCH] changed generator.py to allow internal dispatching --- phantom_pdf/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):