Image upload using django-summernote is ok in admin panel but not showing to user

151 views
Skip to first unread message

sourav chakraborty

unread,
Sep 5, 2020, 3:23:30 AM9/5/20
to django...@googlegroups.com
Hi All,

I'm testing on Some Quiz project, while in admin panel using Summernote admin can see the text editor and upload and the uploaded image

class QuestionAdmin(SummernoteModelAdmin):
    summernote_fields = ('text',)

admin.site.register(Question, QuestionAdmin)

However, the user/student cannot see the image, instead they see only the image link.

image.png


Please suggest to rectify the issue, thanks.
Regards,
Sourav

Ogunsanya Opeyemi

unread,
Sep 5, 2020, 7:30:57 AM9/5/20
to django...@googlegroups.com
You are rendering the image tag img inside a textbox area.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B5wCfausgwCE%2B5aucOzvUgdhZ%3DnpydEk2k8Oa5BAYmQztH%3DBA%40mail.gmail.com.


--
OGUNSANYA OPEYEMI

sourav chakraborty

unread,
Sep 5, 2020, 7:46:40 AM9/5/20
to django...@googlegroups.com
Yes, but please suggest what should be the type of field then? As I want to use an editor to write content as well as upload images specific to content.

On Sat, Sep 5, 2020 at 4:59 PM Ogunsanya Opeyemi <ogunsany...@gmail.com> wrote:
You are rendering the image tag img inside a textbox area.

On Saturday, September 5, 2020, sourav chakraborty <devops...@gmail.com> wrote:
Hi All,

I'm testing on Some Quiz project, while in admin panel using Summernote admin can see the text editor and upload and the uploaded image

class QuestionAdmin(SummernoteModelAdmin):
    summernote_fields = ('text',)

admin.site.register(Question, QuestionAdmin)

However, the user/student cannot see the image, instead they see only the image link.

image.png


Please suggest to rectify the issue, thanks.
Regards,
Sourav

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.


--
OGUNSANYA OPEYEMI

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABJxPrHivLTs8yXWthQvCu36JTMs_D%3DYa4-Tp223ncjC1cRJCw%40mail.gmail.com.

hans alexander

unread,
Sep 5, 2020, 8:37:45 AM9/5/20
to django...@googlegroups.com

sourav chakraborty

unread,
Sep 5, 2020, 12:31:29 PM9/5/20
to django...@googlegroups.com
Thanks, sure will try and let you know,



Reply all
Reply to author
Forward
0 new messages