Skip to content
Advertisement

Django Ckeditor image browser not finding images

So I’m building a simple blog to keep track of my projects. I decided to use CKeditor as the wysiwyg editor. I was able to get all of it to work except for the image portion of it. I’m not able to view the images in the server when I hit “image browse”, and whenever I upload an image, it does upload but I can’t view it. It pops up as a red ‘X’.

Link to screenshots showing what’s happening: http://imgur.com/a/ODk8p

Below is the code I have where I added CKEditor to my installed apps my project’s settings.py

JavaScript

Later in my project’s settings.py I have the setup for CKEditor:

JavaScript

Here is my models.py for my project (looking very simple for now):

JavaScript

I also have this line to add CKEditor url in my project’s urls.py:

JavaScript

Any idea as to might be wrong? Everything works except for the images. Any Help is strongly appreciated

Advertisement

Answer

If this is in DEBUG/runserver mode, did you remember to add

JavaScript

to your urls.py

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement