Django filebrowser tinymce - Can't upload images - django

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.

Related

Opencart image upload problem 404 eror when upload

I have a opencart website, in this website i try to upload images from admin panel but i got 404 eror, how can i fix this
Any idea how can i fix this

Django PWA extention, Icons for pwa website not showing up in F12 menu by manifest in chrome

I am making a PWA website on top of django and the website icons are not showing up when in the devoloper menu in Chrome as seen in the picture.
This is the code i use for the manifest.
There are no error in the web-console or webserver the images all have a good connection code 200.
i'm not familiar with django, but I'd suspect you'd have to reference the images relative to where the manifest.json file is. So if your file structure is something like this
- build
- static(folder)
- ...
- favicon
- manifest.json
then your reference of the files would need to be starting with ./static... rather than /static
in my experience however, the favicon icons need to be in the same folder as the manifest.json, so move them to the top level folder (build folder) and reference it like ./favicon.ico

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 ...

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.

photolouge gallery only uploads one picture

I have a django site with photologue installed, and I followed the official documentation to get it setup. Whenever I go to the admin site to create a gallery I can choose multiple pictures to put in that gallery but once I hit save only the first selected photo gets saved to the gallery. Does anyone know why this is happening. I'm using photologues default template to view my pictures on the front end.
I had the same problem. Looking at web debugger, when loading the gallery page, it says:
Loading failed for the with source http://xxxxxxxx.com/static/sortedm2m/widget.js Loading failed for the with source http://xxxxxx.com/static/sortedm2m/jquery-ui.js
I solved it by:
cd <static_dir>
cp -R .../python3.6/sortedm2m/static/sortedm2m .