问题描述
我正在尝试安装已经下载过的软件包"wagtailtinymce",但是,存储库教程完全不好.我不知道这是因为某些更新还是什么.我正在使用最新版本的wagtail,并且已经创建了一个项目(显而易见).
I'm trying to install the package "wagtailtinymce" already downloaded it, however, the repository tutorial is completely bad. I do not know if it's because of some update or something. I'm using the latest version of wagtail and I already have a project created (obvious).
该错误发生在软件包试图进行的每次导入中,并且由于我是从Django和Wagtail开始的,所以我不知道该怎么做.由于此错误,我还不能迁移应用程序.
The error is in every import the package tries to make, and since I'm starting in Django and Wagtail, I do not know what to do. I have not been able to migrate the application yet because of this error.
File "/mnt/sda3/Development/Projetos/blog-wagtail/env/lib/python3.7/site-packages/wagtailtinymce/wagtail_hooks.py", line 37, in <module>
from wagtail.wagtailadmin.templatetags.wagtailadmin_tags import hook_output
ModuleNotFoundError: No module named 'wagtail.wagtailadmin'
File "/mnt/sda3/Development/Projetos/blog-wagtail/env/lib/python3.7/site-packages/wagtailtinymce/wagtail_hooks.py", line 29, in <module>
from django.core.urlresolvers import reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'
当我更改为从django.urls反向导入"时,通过了django的导入,但是其余的我不知道该怎么办,我相信它将在每次导入时继续出错.
The import of django passed when I changed to "from django.urls import reverse" but the rest I do not know what to do, and I believe it will continue to give error every import
推荐答案
查看文档,https://github.com/isotoma/wagtailtinymce#wagtail-tinymce ,此模块与Wagtail 1.5兼容,目前处于2.3版本.
Looking at the documentation, https://github.com/isotoma/wagtailtinymce#wagtail-tinymce , this module is compatible with Wagtail 1.5 and currently we are in the 2.3 version.
这篇关于Wagtail Tinymce-ModuleNotFoundError:没有名为"wagtail.wagtailadmin"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!