django summernote to aws3 connection problem - django

django summernote can be uploaded and shown locally, but if i connect summernote aws s3, it will be uploaded, but the image cannot be imported. Does anyone know?

Related

Images not rendering on-page in vue v-for from S3 uploaded into Strapi admin

I have an API call that is publically accessible:
https://g1c0r7af15.execute-api.eu-west-1.amazonaws.com/dev/api/portfolio-items?filters[category][$eq]=Portraits&populate=image
The API is a strapi app that has had images uploaded to it and the images are hosted in S3.
I am trying to render the images in a v-for in a Gridsome app but all I see is an empty page with the images visible in the inspector but not on the page - the URL's of the images when individually accessed display the images fine in a browser:
All my <li> items are like this, the images are "there" but aren't being displayed. Can anyone offer any insight as to why? They show fine in the Strapi admin and when placed in the HTML statically, my S3 bucket is public and I have no issues accessing the individual image URL's that render inside the v-for and seeing the images in a new tab:
An example URL of the image in the screenshot here:
https://nazart-backend-dev-s3staticbucket-1w4isti2cbult.s3.eu-west-1.amazonaws.com/Karoline_01_b3af2ebc3e.jpg
I have double checked in Chrome also. It's completely baffling me.
.drag-galery__item class is setting the opacity 0, this is making the image invisible

How to embed images on a site django with dropbox?

Deployed a blog on Heroku. I upload the picture to the record through the admin panel on Dropbox via django-storages. The picture appears in the Dropbox application, but I don’t understand how to load the link to it. How to embed Dropbox pictures? You can advise other ways. While the idea is only to manually link links to the database ...

Type Error on uploading image files through django admin

I've created a personal website/blog with python django, and as an admin, I want to create instances of that blog based on the django model and display it to the html page accordingly. That model basically consists of a Title field, TextArea field, and Image field. My app is currently deployed on Heroku, and I'm serving images using AWS S3 Buckets. Locally, when I create a blog instance through the django admin it is successful, but when I log into the django admin onto the deployed app on Heroku, I'm getting this error:
TypeError at /admin/projects/project/add/
expected string or bytes-like object
and this is what appears in the console
was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://dpaste.com/'. This endpoint should be made available over a secure connection.
Upon further research, It seems like the Image field is not the type of text or bytes when I upload from as a djagno admin and s3 is throwing an error failed. This is just a hunch, but any ideas?
Add SSL to this domain http://dpaste.com/ it looks like does not implemented and change it to https://dpaste.com/ the error is due to unencrypted traffic in your webform

django ckeditor running into unexpected errors

I am using django-ckeditor python package in my django app (django 1.11 + python 2.7). I have integrated it with s3 and it is hosted on Heroku. So far everything runs smooth.
Earlier I had an issue that non admin user could not upload images to server thus can not use any images as a part of their content. I fixed it by overriding ckeditor's browse and upload view. When i tested it it was working just fine. I pushed it to production.
Now none of my user can use ckeditors image upload or browse feature. when I try it, (as an admin or as regular user) it works. some users reported that app crashes, some said image wont show up despite uploading to server (also I can't see it in my s3 bucket.)
other images are working well with s3 for all users. but ckeditors images are working only for me, no matter which machine or which role I try as.
I also checked heroku apps, but they are not helpful at all.
Does anyone have idea any guesses why this could be happening.

Django filebrowser tinymce - Can't upload images

I have installed tinymce, django-filebrowser and grappelli.
Everything works nice except that I can't upload files to my local dev server.
When I click on Insert/Edit image icon in Tinymce editor and then on Browse button I get the page where I can see a list of my already uploaded images through django's image upload method in media/images/ folder.
However when I click the Upload button a get the Upload page but no possibilities for selecting and uploading images/files.
Here is the screenshot of that window.
https://gyazo.com/175028ba6630d94f1ddd7148697775ab
When I inspect the window there is an error message in the console:
Uncaught SyntaxError: Unexpected token & 127.0.0.1/:97
It is not working with Django 1.9 yet.