0

I am new to Djnago and programming. Trying to build a blog, everything done except a wysiwyg editor. Trying froala, but issue is files are uploaded but not displayed and error is thrown.

http://localhost:8000/admin/blogapp/blogpost/add/uploads/froala_editor/images/DSC00142.JPG/ 404 (NOT FOUND)

How to solve this error? Installed froala with suggestion given in https://github.com/froala/django-froala-editor

4

1 回答 1

0

问题出在 Media_Root,我们必须定义 Media_Root 路径 MEDIA_ROOT = os.path.join(BASE_DIR, 'media'),然后定义 MEDIA_URL。

它现在工作。

于 2016-03-12T03:51:56.930 回答