Maximum AutoField Value

2009-10-31 Thread A. Rossi
What is the maximal value for an AutoField? When that value is reached, does it "wrap" around to 0, or does something else occur? Is it database-backend dependent? I can't find it in the documentation, nor on this mailing list. Thank you. --~--~-~--~~~---~--~~ You

Re: ImageField anti-duplication

2009-09-20 Thread A. Rossi
Yup, that did it! Thanks for pointing that out! That article was hard to find in the documentation. On Sep 12, 7:58 pm, "A. Rossi" wrote: > I had not considered writing a custom Storage class. I may try that if > there are no other alternatives. > > Any other ideas/solut

Re: ImageField anti-duplication

2009-09-12 Thread A. Rossi
used any custom file storage yet but maybe using a custom file- > storage with a dummy save method when file exists is what you need. > > On Sep 12, 1:43 pm, "A. Rossi" wrote: > > > I have an application where users can upload images, then the image is > > renamed to

ImageField anti-duplication

2009-09-12 Thread A. Rossi
I have an application where users can upload images, then the image is renamed to a SHA256 hash of the file's contents. Here is the relevant snippet of the model class ImagePost(Post): def imgurl(self, filename): import hashlib, os.path extension = os.path.splitext(filename)

Re: Image Location

2009-09-05 Thread A. Rossi
I am suffering a similar problem, but I think the problem is that my URLConf is improperly configured to display the images. Could somebody direct me to the proper documentation for displaying static images with the dev server? On Aug 23, 9:18 am, "J. Cliff Dyer" wrote: > On Sun, 2009-08-23 at