Skip to main content

django ueditor plugin

Project description

django ueditor 插件
----
> 本项目大量拷贝了 django-ckeditor的代码

使用:
> pip install ueditor

功能介绍
----
- 最新版ueditor
- 支持图片上传
- 支持在线文件管理
- 完美支持python3+

配置
----
setting.py 文件加入:
::
UEDITOR_UPLOAD_PREFIX = "/static/upload/"
UEDITOR_UPLOAD_DIR = os.path.join(BASE_DIR, 'static/upload/')


使用代码:
::
from ueditor.fields import RichTextField

#ueditor json配置

CONFIG={

}

class Article(models.Model):
title = models.CharField(max_length=256, verbose_name='标题', blank=False, null=False)
content = RichTextField(verbose_name='内容', null=False, blank=False,
config=CONFIG)

问题
----
- ueditor 很多东西都已经用不了了,项目最后维护是在2016年
- 如果上传遇到403 错误,django.middleware.csrf.CsrfViewMiddleware 去掉这一句,在settings.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ueditor-1.3.tar.gz (2.8 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page