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