在python上的import_error_application django。我在python的任何地方部署了应用程序,但是这个错误阻止了我继续前进

时间:2015-06-15 19:20:32

标签: django pythonanywhere django-wsgi

任何地方在python上的import_error_application django。我在python的任何地方部署了应用程序,但是这个错误阻止了我继续前进。还有任何标准代码用于在没有错误的pythonanywhere上部署。

:/usr/lib/python2.7/threading.py:1160: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
:  return _active[_get_ident()]
:Traceback (most recent call last):
:  File "/bin/user_wsgi_wrapper.py", line 130, in __call__
:    self.error_log_file.logger.exception("Error running WSGI application")
:  File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception
:    self.error(msg, *args, **kwargs)
:  File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
:    self._log(ERROR, msg, args, **kwargs)
:  File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
:    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
:  File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
:    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)

:  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
:    self.threadName = threading.current_thread().name
:  File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
:    return _active[_get_ident()]
:  File "/bin/user_wsgi_wrapper.py", line 122, in __call__
:    app_iterator = self.app(environ, start_response)
:  File "/bin/user_wsgi_wrapper.py", line 136, in import_error_application
:    raise e
:  File "/home/username/timepass/timepass/settings.py", line 109
//Actually there is no code at line 109

1 个答案:

答案 0 :(得分:2)

如果您从不存在的行中收到错误,最可能的是您正在查看从旧版代码生成的回溯,并且您需要重新加载您的Web应用以查看正确的追溯。