I noticed the full path to the image is being stored in the table. I thought only the relative path to MEDIA_ROOT should be stored?
On Nov 27, 9:03 pm, cc <[email protected]> wrote: > Hi Chris, > > Not sure if that is really the problem, I think something else might > be at work here.. this is what I get for any request on thumbnail > URLs: > > [27/Nov/2009 21:00:11] "GET /static/c:/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspac > e/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspace/ne > wstore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newsto > re/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newstore/s > rc/store/static/images/users/cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src/s > tore/static/images/users/cc/workspace/newstore/src/store/static/images/ > users/cc/workspace/newstore/src/store > /static/images/users/cc/workspace/newstore/src/store/static/images/ > users/cc/workspace/newstore/src/store/sta > tic/images/users/cc/workspace/newstore/src/store/static/images/users/ > cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/imag > es/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images/u > sers/cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users > /cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/mar > c/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc > n/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc/wo > rkspace/newstore/src/store/static/images/users/cc/workspace/newstore/ > src/store/static/images/users/cc/worksp > ace/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/news > tore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newstore > /src/store/static/images/users/cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src > /store/static/images/users/cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src/sto > re/static/images/users/cc/workspace/newstore/src/store/static/images/ > users/cc/workspace/newstore/src/store/s > tatic/images/users/cc/workspace/newstore/src/store/static/images/users/ > cc/workspace/newstore/src/store/stati > c/images/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/im > ages/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images > /users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images/use > rs/cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/m > cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc > c/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images/users/cc/workspace/newstore/ > src/store/static/images/users/cc/work > space/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspac > e/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspace/ne > wstore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newsto > re/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newstore/s > rc/store/static/images/users/cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src/s > tore/static/images/users/cc/workspace/newstore/src/store/static/images/ > users/cc/workspace/newstore/src/store > /static/images/users/cc/workspace/newstore/src/store/static/images/ > users/cc/workspace/newstore/src/store/sta > tic/images/users/cc/workspace/newstore/src/store/static/images/users/ > cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/imag > es/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images/u > sers/cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users > /cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/mar > uchan/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/ > n/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc/wo > rkspace/newstore/src/store/static/images/users/cc/workspace/newstore/ > src/store/static/images/users/cc/worksp > ace/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/news > tore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newstore > /src/store/static/images/users/cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src > /store/static/images/users/cc/workspace/newstore/src/store/static/ > images/users/cc/workspace/newstore/src/sto > re/static/images/users/cc/workspace/newstore/src/store/static/images/ > users/cc/workspace/newstore/src/store/s > tatic/images/users/cc/workspace/newstore/src/store/static/images/users/ > cc/workspace/newstore/src/store/stati > c/images/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/im > ages/users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images > /users/cc/workspace/newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images/use > rs/cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/m > cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc > cc/workspace/newstore/src/store/static/images/users/cc/workspace/ > newstore/src/store/static/images/users/cc/ > workspace/newstore/src/store/static/images/users/cc/workspace/newstore/ > src/store/static/images/users/cc/work > space/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspac > e/newstore/src/store/static/images/users/cc/workspace/newstore/src/ > store/static/images/users/cc/workspace/ne > wstore/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newsto > re/src/store/static/images/users/cc/workspace/newstore/src/store/ > static/images/users/cc/workspace/newstore/s > rc/store/static/images/productimage-picture-neat- > book-2_jpg_280x280_q85.jpg HTTP/1.1" 302 0 > > On Nov 27, 8:39 pm, Chris Moffitt <[email protected]> wrote: > > > It's probably some sort of issue with windows paths. You can hard code the > > path in your settings.py here - > > MEDIA_ROOT = os.path.join(DIRNAME,'static/') > > > for some reason, the os.path.join isn't working right with windows. > > > -Chris > > > On Fri, Nov 27, 2009 at 5:03 PM, cc <[email protected]> wrote: > > > I deployed the store using the store builder script and for some > > > reason the thumbnail paths are /static/C:/path/to/my/site/. Not sure > > > why it would be appending the absolute path instead of the relative > > > path. Any idea what could cause this? > > > > Using Django 1.1, satchmo tip (1.0-pre) and latest libs on Windows 7. > > > > Thanks in advance. > > > > -- > > > > 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]<satchmo-users%[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/satchmo-users?hl=en. -- 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.
