django-survey icon indicating copy to clipboard operation
django-survey copied to clipboard

Image upload Error

Open developer11092 opened this issue 6 years ago • 4 comments
trafficstars

This is one error

PIL.Image.init() l.430 - Image: failed to import MicImagePlugin: No module named 'olefile'

Above came in the cmd

AttributeError at /survey/3/ 'ImageSelectWidget' object has no attribute 'template_name'

this one was shown on the browser

And can we have multiple image choices in the survey question? And can I have a part where i can show a video in the survey either by a link or by having it on my server machine!

developer11092 avatar Feb 15 '19 10:02 developer11092

I did not use image or video in my survey so it's still in the state it was originally. You could check @mental689 repository, he seem to have some commit related to videos : https://github.com/mental689/django-survey/network

Pierre-Sassoulas avatar Feb 15 '19 11:02 Pierre-Sassoulas

What do we add in the template part in the add survey in admin site!

developer11092 avatar Feb 16 '19 07:02 developer11092

Not a error but just to know what is the template field in the survey model represents? And how is it connected to the image field? When uploading image do we need to add this "survey/forms/image_select.html"

in the template field?

developer11092 avatar Feb 18 '19 10:02 developer11092

I think it was supposed to be a way to personalize the template for a field. Never used personally it could probably better documented. I reopen the bug as the problem with image was not fixed.

Pierre-Sassoulas avatar Feb 18 '19 11:02 Pierre-Sassoulas