Closed elcolie closed 6 years ago
@elcolie can you edit your comment and fix new lines of the traceback because everything looks on one line and is very hard to read.
@vstoykov I have updated my issue based on your comment. And I also add admin.py
. Thank you for very fast response
@elcolie your traceback still does not look like python traceback. Look here for example how traceback should look like https://github.com/matthewwithanm/django-imagekit/issues/454#issuecomment-362672382
@vstoykov Sorry to keep you waiting. First day I tried regex to align me text. Second day(this day) I give up and use multiple cursor. Please let me know if you need more source code to drill down the issue. I will provide you as fast as I can.
OK you are using utils.py to save your record when?
I need more context about how exaclty and when you are executing this code in your utils.py
.
@vstoykov I have update utils.py
to the issue.
Function will give the customer a voucher ONLY first request to the system. Because Django will create userprofile and issue the voucher. This process will be done only once because of profile_created
will be True
for first time otherwise False
If you put in your admin only one thumbnail for example in list_display
to have only small_thumbnail
(medium_thumbnail
and large_thumbnail
to be removed) did the problem continues to appear?
@vstoykov No. The problem is gone when I use only single one not all three. Any ideas?
And when all of the thumbnails are shown and you change the image trough administration there is no problem right?
@vstoykov Yes. You are correct.
Any ideas?
DId you use some non standard storage like S3 from django-storages or any other 3th party storage for MEDIA_STORAGE
?
Yes. I did. They are as follows
'storages',
'collectfast'
Ok this is duplicate of #391
I use solution from leonsmith in https://github.com/matthewwithanm/django-imagekit/issues/391 It works!
Simplified traceback is
requirements.txt
utils.py
models.py
admin.py
I confirm file is there and I can save the record with
image
When I usedjangoAdmin
page do save. The thumbnails are fine.Problem: When I use
utils.py
to create my record. Django admin page will call thumbnails and raises IOError file not foundQuestion: Where am I wrong?