From d1483fc1656b041e10ecff74c445babbb5d4ecd1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 9 Nov 2011 21:42:30 +0530 Subject: [PATCH] change base url for pdfs --- printaform/formaprint/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printaform/formaprint/views.py b/printaform/formaprint/views.py index 95ace9d..a49da3a 100644 --- a/printaform/formaprint/views.py +++ b/printaform/formaprint/views.py @@ -104,7 +104,7 @@ def print_item(request): pdf_path = join(MEDIA_ROOT, "pdfs") pdf_name = "%s.pdf" % id pdf_output_path = join(pdf_path, pdf_name) - url = "http://localhost:8000/render_item/?id=%s" % id + url = "http://printaform.bhangar.com/render_item/?id=%s" % id cmd = "wkhtmltopdf %s %s" % (url, pdf_output_path,) print cmd os.system(cmd)