change base url for pdfs

This commit is contained in:
Sanj 2011-11-09 21:42:30 +05:30
parent c8708c3766
commit d1483fc165

View File

@ -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)