change base url for pdfs
This commit is contained in:
parent
c8708c3766
commit
d1483fc165
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user