运行:python manage.py runserver 报错

Unhandled exception in thread started by <function wrapper at 0x7f22d0e0a1b8>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 249, in raise_last_exception
    six.reraise(*_exception)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/mnt/MxOnline/extra_apps/xadmin/apps.py", line 14, in ready
    self.module.autodiscover()
  File "/mnt/MxOnline/extra_apps/xadmin/__init__.py", line 49, in autodiscover
    register_builtin_plugins(site)
  File "/mnt/MxOnline/extra_apps/xadmin/plugins/__init__.py", line 43, in register_builtin_plugins
    [import_module('xadmin.plugins.%s' % plugin) for plugin in PLUGINS if plugin not in exclude_plugins]
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/mnt/MxOnline/extra_apps/xadmin/plugins/importexport.py", line 48, in <module>
    from import_export.admin import DEFAULT_FORMATS, SKIP_ADMIN_LOG, TMP_STORAGE_CLASS
  File "/usr/local/lib/python2.7/dist-packages/import_export/admin.py", line 31, in <module>
    from .resources import (
  File "/usr/local/lib/python2.7/dist-packages/import_export/resources.py", line 4, in <module>
    import tablib
ImportError: No module named tablib



==============================

(mxonline) root@iZbp1berl2oy3e3vt5476fZ:/mnt/MxOnline# python manage.py runserver
Performing system checks...

/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/DjangoUeditor/urls.py:15: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url(r'^controller/$',get_ueditor_controller)

Unhandled exception in thread started by <function wrapper at 0x7f4ef3d06d70>
Traceback (most recent call last):
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
    self.check(display_num_errors=True)
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/core/management/base.py", line 426, in check
    include_deployment_checks=include_deployment_checks,
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/core/checks/registry.py", line 75, in run_checks
    new_errors = check(app_configs=app_configs)
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/core/checks/urls.py", line 10, in check_url_config
    return check_resolver(resolver)
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/core/checks/urls.py", line 19, in check_resolver
    for pattern in resolver.url_patterns:
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/root/.virtualenvs/mxonline/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 426, in url_patterns
    raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
django.core.exceptions.ImproperlyConfigured: The included URLconf 'MxOnline.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值