diff --git a/doc/usage.rst b/doc/usage.rst index 7f18262f..7129b490 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -442,7 +442,7 @@ that converts relative URLs to absolute system paths. html = template.render(Context(data)) # Write PDF to file - file = open(os.join(settings.MEDIA_ROOT, 'test.pdf'), "w+b") + file = open(os.path.join(settings.MEDIA_ROOT, 'test.pdf'), "w+b") pisaStatus = pisa.CreatePDF(html, dest=file, link_callback = link_callback)