【问题标题】:import_error_application django on python anywhere. I deployed the app on python anywhere but this error is stopping me from going furtherimport_error_application django on python 任何地方。我将应用程序部署在 python 上的任何地方,但这个错误阻止我走得更远
【发布时间】:2015-08-31 10:18:39
【问题描述】:

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

【问题讨论】:

    标签: django pythonanywhere django-wsgi


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2018-12-19
      • 2015-04-30
      • 1970-01-01
      • 1970-01-01
      • 2017-08-17
      • 1970-01-01
      • 2018-11-05
      • 2017-05-08
      • 1970-01-01
      相关资源
      最近更新 更多