-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 に答える