I think I got the point. In the Satchmo_utils\thumbnail\utils.py,
there is 258:
if path.startswith(media_root):
path = path[len(media_root):]
if path[0] == '/':
path = path[1:]
the value of "path" is "d:\project\mystore\static\images"., and the
value of "media_root" is "D:\project\mystore\static". that is the
point.
if path.startswith(media_root):
path = path[len(media_root):]
it means that path = \images. Because the value of path and
media_root, the path is not startswith media_root. so it use "d:
\project\mystore\static\images" to store the thumbnail path in the
product_productimage table.
And I think what make it different?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---