-1

import_error_application django on python 任何地方。我将应用程序部署在 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
4

1 回答 1

2

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

于 2015-06-15T22:40:58.907 回答