| author | durandn |
| Fri, 12 Aug 2016 11:50:37 +0200 | |
| changeset 115 | 365f92285308 |
| parent 114 | f0ce0058c09b |
| child 118 | a9be1de5fe90 |
--- a/src/iconolab/management/commands/importimages.py Fri Aug 12 11:10:42 2016 +0200 +++ b/src/iconolab/management/commands/importimages.py Fri Aug 12 11:50:37 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 )