1.安装
pip install django-tinymce==2.6.0
2.添加应用
在setting里的INSTALLED_APPS中添加
INSTALLED_APPS = (
'tinymce',
)
3.添加配置项
TINYMCE_DEFAULT_CONFIG = {
'theme': 'advanced',
'width': 600,
'height': 400,
}
4.设置主路由
urlpatterns = [
...
url(r'^tinymce/', include('tinymce.urls')),
]