| author | Harris Baptiste <harris.baptiste@iri.centrepompidou.fr> |
| Fri, 12 Aug 2016 16:12:40 +0200 | |
| changeset 118 | a9be1de5fe90 |
| parent 117 | e4e85c5c0830 (current diff) |
| parent 115 | 365f92285308 (diff) |
| child 119 | 33102de1f38a |
| child 124 | e5267573edd8 |
--- a/src/iconolab/management/commands/importimages.py Fri Aug 12 16:07:19 2016 +0200 +++ b/src/iconolab/management/commands/importimages.py Fri Aug 12 16:12:40 2016 +0200 @@ -171,8 +171,8 @@ print(e) new_image = Image.objects.create( item = item_object, - media = image_path, - name = image_name, + media = "uploads/"+image_name+".jpg", + name = image_name+".jpg", height = im_height, width = im_width )