click on hyper link and got 404 error
James Yu
cyu021 at gmail.com
Mon Apr 14 21:44:54 EDT 2008
I am using "mod_python.publisher" to generate my web page that contains
serveral links to local files.
I also replace the path with my domain name like this:
curDir = os.path.dirname(__file__)
link = 'http://' + hostname + '/' + os.path.basename(curDir) + '/'
files = os.listdir(curDir)
for i in files: body = body + '<a href='+'"'+ link + i + '">' + i +
'</a>' + '<br>'
However, browser give me 404 error whenever I click on any of the links.
Is there something wrong with how I build my file links ?
Thanks,
--
This is a UTF-8 formatted mail
-----------------------------------------------
James C.-C.Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080415/b0adfe39/attachment.html>
More information about the Python-list
mailing list