jahson 发表于 2013-1-28 19:36:26

django项目添加了fckeditor

fckeditor默认的 connector.py 不能用于django项目。至少我没有测试通过。

不知道什么办法可以使django程序和普通的cgi程序一块运行?
我对原fckeditor的程序做了修改, 将参数传递,request,response 等对象,修改成django的方式。


获取文件绝对路径的方法:
UserFilesAbsolutePath = os.path.abspath( os.path.dirname(__file__) + "/../" ) + UserFilesPath



修改好的程序见附件。

配置项目的url映射就好了
(r'^fckeditor/editor/filemanager/connectors/py/connector.*', 'fckUpload.connector.doCommond' ),
页: [1]
查看完整版本: django项目添加了fckeditor