请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

添加url(r'^ueditor/', include('DjangoUeditor.urls '))时报错

在按照视频添加url(r'^ueditor/', include('DjangoUeditor.urls '))时会出现以下错误信息,如果删除了就不会报错:

Unhandled exception in thread started by <function wrapper at 0x00000000025B7E48>

Traceback (most recent call last):

  File "D:\venv27\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper

    fn(*args, **kwargs)

  File "D:\venv27\lib\site-packages\django\core\management\commands\runserver.py", line 116, in inner_run

    self.check(display_num_errors=True)

  File "D:\venv27\lib\site-packages\django\core\management\base.py", line 426, in check

    include_deployment_checks=include_deployment_checks,

  File "D:\venv27\lib\site-packages\django\core\checks\registry.py", line 75, in run_checks

    new_errors = check(app_configs=app_configs)

  File "D:\venv27\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config

    return check_resolver(resolver)

  File "D:\venv27\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver

    for pattern in resolver.url_patterns:

  File "D:\venv27\lib\site-packages\django\utils\functional.py", line 33, in __get__

    res = instance.__dict__[self.name] = self.func(instance)

  File "D:\venv27\lib\site-packages\django\core\urlresolvers.py", line 417, in url_patterns

    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

  File "D:\venv27\lib\site-packages\django\utils\functional.py", line 33, in __get__

    res = instance.__dict__[self.name] = self.func(instance)

  File "D:\venv27\lib\site-packages\django\core\urlresolvers.py", line 410, in urlconf_module

    return import_module(self.urlconf_name)

  File "D:\Program Files\Python27\Lib\importlib\__init__.py", line 37, in import_module

    __import__(name)

  File "D:\Demo\MxOnline\MxOnline\urls.py", line 45, in <module>

    url(r'^ueditor/', include('DjangoUeditor.urls ')),

  File "D:\venv27\lib\site-packages\django\conf\urls\__init__.py", line 52, in include

    urlconf_module = import_module(urlconf_module)

  File "D:\Program Files\Python27\Lib\importlib\__init__.py", line 37, in import_module

    __import__(name)

ImportError: No module named urls 


正在回答 回答被采纳积分+3

2回答

weibo_喵了个咪ky_0 2018-03-06 09:07:39

请问怎么解决的  我也遇到了相同的错误

0 回复 有任何疑惑可以回复我~
提问者 慕粉2224471126 2017-11-08 09:20:39

已解决

0 回复 有任何疑惑可以回复我~
  • bobby #1
    好的,
    回复 有任何疑惑可以回复我~ 2017-11-09 10:24:16
  • 请问怎么解决的  我也遇到了相同的错误
    回复 有任何疑惑可以回复我~ 2018-03-06 09:05:26
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信