WISiWYG上传图片:Django方式

时间:2022-02-05 06:49:30

I'm trying to integrate TinyMCE or CKEditor into Django, but I have no idea how to manage uploading pictures. I've been searching and found some django apps, but they won't work with my Django version (1.1.1), buggy and not maintained.

我正在尝试将TinyMCE或CKEditor集成到Django中,但我不知道如何管理上传图片。我一直在搜索并找到了一些django应用程序,但是它们不适用于我的Django版本(1.1.1),越野车而且没有维护。

Maybe I missed something? Can you please give me a step-by-step guide how to add WYSIWYG with uploading into django form?

也许我错过了什么?你能否给我一个循序渐进的指导如何添加所见即所得与上传到django表格?

2 个解决方案

#1


5  

Use TinyMCE or CKEditor with django-filebrowser.

将TinyMCE或CKEditor与django-filebrowser一起使用。

Description from the official site:

官方网站的描述:

The FileBrowser is an extension to the Django Admin-Interface in order to

FileBrowser是Django Admin-Interface的扩展,以便

  • browse directories on your server and upload/delete/edit/rename files.
  • 浏览服务器上的目录并上传/删除/编辑/重命名文件。
  • include images/documents to your models/database using the FileBrowseField.
  • 使用FileBrowseField将图像/文档包含到模型/数据库中。
  • select images/documents for TinyMCE and CKEditor.
  • 选择TinyMCE和CKEditor的图像/文档。

#2


1  

Try this:

尝试这个:

https://pypi.python.org/pypi/Django-tinymce-filebrowser

https://pypi.python.org/pypi/Django-tinymce-filebrowser

Its allow to manage images and files from tinyMCE

它允许管理来自tinyMCE的图像和文件

#1


5  

Use TinyMCE or CKEditor with django-filebrowser.

将TinyMCE或CKEditor与django-filebrowser一起使用。

Description from the official site:

官方网站的描述:

The FileBrowser is an extension to the Django Admin-Interface in order to

FileBrowser是Django Admin-Interface的扩展,以便

  • browse directories on your server and upload/delete/edit/rename files.
  • 浏览服务器上的目录并上传/删除/编辑/重命名文件。
  • include images/documents to your models/database using the FileBrowseField.
  • 使用FileBrowseField将图像/文档包含到模型/数据库中。
  • select images/documents for TinyMCE and CKEditor.
  • 选择TinyMCE和CKEditor的图像/文档。

#2


1  

Try this:

尝试这个:

https://pypi.python.org/pypi/Django-tinymce-filebrowser

https://pypi.python.org/pypi/Django-tinymce-filebrowser

Its allow to manage images and files from tinyMCE

它允许管理来自tinyMCE的图像和文件