id = None When Customizing Uploaded Filenames Without Patching

2008-02-09 Thread bergstyle
I know there's been lots of discussion about how to change uploaded filenames. After wading through the options I've been trying to use the method described here: http://gulopine.gamemusic.org/2007/nov/07/customizing-filenames-without-patching/ But I can't get the primary key of the object to a

Re: id = None When Customizing Uploaded Filenames Without Patching

2008-02-09 Thread bergstyle
Thanks for clearing that up Gul. It's starting to click now. I'm gonna do the save twice trick for now, so I can keep moving forward with this project. Later on I'll refactor it to use a separate model for images. --~--~-~--~~~---~--~~ You received this message beca

ImageField links in admin going no-where

2008-04-06 Thread bergstyle
One of my models has an ImageField. The image file uploading and removing works correctly but in the Admin interface it display a link to see the image. Here's what the link looks like: http://admin.domain-dev.com/admin/appname/product/6/product_images/raw/bptestimage.jpg The problem is I just ge

Re: ImageField links in admin going no-where

2008-04-06 Thread bergstyle
I got this working. My media url wasn't setup right. If anyone else encounters this issue. I setup my media_url in the settings file and then I point /media to that directory in the web server config. Then for the admin files I created a symlink to them from inside my regular media directory. --~-