1

I want to upload images to a gallery app. I want the user to be able to either load images normaly, or upload on zip file containing all the images for that gallery. Then it must be uncompressed and all images must be added to that model. This is for the admin site.

Any ideas?

Harry
  • 13,091
  • 29
  • 107
  • 167
  • Yes, get started and let us know when you get stuck. This question is far too broad to answer. What are you stuck doing? Working out how it fits together? Processing the zip files? Implementing this in the admin? Ask specific questions, and you'll get specific answers. – Dominic Rodger Aug 13 '10 at 13:00
  • Which bit are you having trouble with? – Daniel Roseman Aug 13 '10 at 13:00
  • Ok so far, the gallery app is done. You can add photos with the normal image upload field. I dont know how this fits together, when uploading a zip file, unzipping it, and then saving it to the model. The upload and unzip part i can do, just the actual images that have unziped, how do I save them to that model? – Harry Aug 13 '10 at 13:06

1 Answers1

1

You could either use the existing django-app django-photologue which enables you to do that or have a look at how it is implemented there: https://code.google.com/p/django-photologue/source/browse/trunk/photologue/models.py. If you see that photlogue is lacking some of the functionality you need, you could also subclass and extend photologue's models in your app!

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Bernhard Vallant
  • 49,468
  • 20
  • 120
  • 148
  • thanks!just found this http://stackoverflow.com/questions/925305/uploading-multiple-images-in-django-admin – Harry Aug 13 '10 at 13:45