Closed GoogleCodeExporter closed 9 years ago
Are you using the latest rev from the 3.x branch and the latest ImageKit
release?
Original comment by justin.d...@gmail.com
on 19 Feb 2009 at 6:36
Yep
Original comment by mand...@gmail.com
on 19 Feb 2009 at 6:41
cat apps/photologue/__init__.py
VERSION = (2, 1)
Original comment by mand...@gmail.com
on 19 Feb 2009 at 6:42
Or better yet:
svn info
Path: .
URL: http://django-photologue.googlecode.com/svn/branches/3.x/photologue
Repository Root: http://django-photologue.googlecode.com/svn
Repository UUID: 2d8b3452-2338-0410-8a60-9550768eb463
Revision: 384
Node Kind: directory
Schedule: normal
Last Changed Author: justin.driscoll
Last Changed Rev: 381
Last Changed Date: 2009-01-28 07:53:08 -0600 (Wed, 28 Jan 2009)
Original comment by mand...@gmail.com
on 19 Feb 2009 at 6:43
and django-imagekit-bd418da34a46.zip
Original comment by mand...@gmail.com
on 19 Feb 2009 at 6:56
I see whats going on. You have S3 set as the default storage but we don't want
to be
saving the zip file to S3 (waste of bandwidth and service fees) so we need to
explicitly set the storage class on the GalleryUpload model to the standard
file
system storage class. I've updated the 3x branch to do this in r385 but I
haven't had
a chance to test this at all. Please let me know if this works.
Original comment by justin.d...@gmail.com
on 20 Feb 2009 at 2:14
Ok, I will try this out and get back to you ... sorry about the delay.
Original comment by mand...@gmail.com
on 2 Mar 2009 at 2:16
Now I'm getting an Exception ...
$ python manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at 0x724ab0>
Traceback (most recent call last):
File
"/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/mana
gement/commands/runserver.py",
line 48, in inner_run
self.validate(display_num_errors=True)
File
"/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/mana
gement/base.py",
line 250, in validate
raise CommandError("One or more models did not validate:\n%s" % error_text)
django.core.management.base.CommandError: One or more models did not validate:
photologue.galleryupload: "zip_file": FileFields require an "upload_to"
attribute.
Before I go and try adding an empty upload_to attribute I thought I'd post this.
Original comment by mand...@gmail.com
on 4 Mar 2009 at 5:24
Thanks, an empty upload_to attribute should fix it and I'll patch this soon.
For some reason I was under the
impression they had removed upload_to as a required keyword argument when they
implemented storages
classes (there's some redundancy there).
Original comment by justin.d...@gmail.com
on 4 Mar 2009 at 10:34
Actually I tried an empty upload_to="" but django didn't like that either. I
ended
up using upload_to="photologue".
Original comment by mand...@gmail.com
on 6 Mar 2009 at 2:28
Windows doesn't store temporary files in '/tmp'. Patch is available at
http://code.google.com/p/mesawarati/source/detail?r=10
Original comment by petar.ma...@gmail.com
on 6 Mar 2009 at 6:34
Sorry guys. I misread the FileSystemStorage class, threw some code at this and
didn't
test it. This whole mess should be fixed in r386.
Original comment by justin.d...@gmail.com
on 6 Mar 2009 at 7:01
I think you forgot to explicitly pass the location parameter to
FileSystemStorage(),
as I've done in http://code.google.com/p/mesawarati/source/detail?r=10
Otherwise, the temporary *.zip files will be recorded to SETTINGS.MEDIA_ROOT.
Original comment by petar.ma...@gmail.com
on 6 Mar 2009 at 7:26
I left the default but passed the upload_to parameter which will save them in
[settings.MEDIA_ROOT]/photologue/tmp/. I think it's best to keep them saved
within
the MEDIA_ROOT directory as it's most likely already writable. The whole /tmp
thing
was a mistake.
Original comment by justin.d...@gmail.com
on 6 Mar 2009 at 7:33
Original issue reported on code.google.com by
mand...@gmail.com
on 19 Feb 2009 at 6:31