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

来源:13-7 xadmin集成富文本ueditor2

慕粉2224471126

2017-11-08

在按照视频添加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 


写回答

2回答

weibo_喵了个咪ky_0

2018-03-06

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

0
0

慕粉2224471126

提问者

2017-11-08

已解决

0
2
weibo_喵了个咪ky_0
请问怎么解决的 我也遇到了相同的错误
2018-03-06
共2条回复

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4038 问题

查看课程