Hello,
I am a mod_python newbie. I hope this is a right forum to post this question.
I have a python publisher script that generates a dynamic html file with a couple of images. How do I specify the base dir for images separately ?
Here is my how my directory structure looks:
/var/www/index.html - main form
/var/www/newtool/newfile.py - python script
/var/www/img/myimage.png - image file
in the newfile.py, I am generating an html page with an image tag. When I say <img src="/var/www/img/myimage.png">, the generated html file has a path reference of /var/www/newtool/newfile.py/img/myimage.png.
How do I specify the base dir for images alone ?
Regards,
Rahul
I am a mod_python newbie. I hope this is a right forum to post this question.
I have a python publisher script that generates a dynamic html file with a couple of images. How do I specify the base dir for images separately ?
Here is my how my directory structure looks:
/var/www/index.html - main form
/var/www/newtool/newfile.py - python script
/var/www/img/myimage.png - image file
in the newfile.py, I am generating an html page with an image tag. When I say <img src="/var/www/img/myimage.png">, the generated html file has a path reference of /var/www/newtool/newfile.py/img/myimage.png.
How do I specify the base dir for images alone ?
Regards,
Rahul