On some filesystems /mnt/MediaFiles is not the same as /mnt/mediafiles on others it is.
2009/7/5 nttdocomo <[email protected]> > > Now I change: > > media_root = os.path.normpath(settings.MEDIA_ROOT) > if path.startswith(media_root): > path = path[len(media_root):] > if path[0] == '/': > path = path[1:] > > to: > > media_root = os.path.normpath(settings.MEDIA_ROOT) > if path.startswith(media_root.lower()): > path = path[len(media_root)+1:] > if path[0] == '/': > path = path[1:] > > it is work find > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
