【发布时间】:2015-09-16 14:32:09
【问题描述】:
我想部署使用django 1.2.5 开发的应用程序,我有一个所需软件包的列表,我已经安装了它们,当我启动http://localhost:8000 时出现以下错误:
from ckeditor.widgets import CKEditorWidget
File "build\bdist.win32\egg\ckeditor\widgets.py", line 4, in <module>
ImportError: No module named staticfiles.templatetags.staticfiles
我安装了一个名为:django-ckeditor 4.4.8 的包,这似乎是根本原因,我看到了ckeditor\widgets.py 文件并试图修改它但没有机会(因为在一个 egg 文件中编译):
#ckeditor\widgets.py
from django.contrib.staticfiles.templatetags.staticfiles import static
...
try:
js += (
static('ckeditor/ckeditor/ckeditor.js'),
static('ckeditor/ckeditor-init.js'),
)
此问题的任何解决方法?
【问题讨论】:
标签: python django django-ckeditor