My structure project
------------------------------
myprjetct
-myapp
-site_media
-images
-template
-report
-employee_report_pdf.html
--------------------------------
this is the def in my view.py
--------------------------------
#....
return ouputting_pdf('reports/employee_report_pdf.html',{
'pagesize':'A4',
'curr_employee':get_employee,
'status':status,
'url':'../'+settings.MEDIA_ROOT,
#'url':os.path.join('..',settings.MEDIA_ROOT),
#
'url':os.path.join(os.path.dirname(__file__),'site_media'),
'age':employee_age() })
--------------------------------------
and this is mytemplate
-----------------------------------
<td><img src="{{ url }}/images/logo2.gif" /></td>
<td><img src="{{ url }}/{{curr_employee.photo}}" style="width: 3cm;height:
4cm; border: solid 1px" /></td>
---------------------------------
this application is to make a report(reportlab,xhtml2pdf,pisa ) .it works
fine on my OS( Ubuntu )
But the images could not display on other OS(Windows)
look at my templates source code i try to works on cross platforms such as
linux ,windows.
Anyone have an experience with os.path to work cross platforms Please help
me to resolve this problem.
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---