Thursday, 19 September 2013

Django-CKEditor won't render images

Django-CKEditor won't render images

I've installed Django-CKEditor and configurated it for development purposes.
Now I can edit text and save it to db as text field. But with inserting
images I have major problems...
I can insert image and it seems to save properly to local host (to correct
folder) but when rendering image to preview or text editor I get only
broken image picture. Apparently I haven't configured settings.py
correctly. Main items from settings.py:
MEDIA_ROOT = ''
MEDIA_URL = '/media/'
STATIC_ROOT = ''
STATIC_URL = '/static/'
CKEDITOR_UPLOAD_PATH = 'media/uploads/'
CKEDITOR_UPLOAD_PREFIX = 'media/uploads/'
Also tried similar configuration than django-ckeditor testproject has but
faced similar broken rendering images.
I'm using windows environment for development
Any ideas what is wrong or where to start solving this?

No comments:

Post a Comment