一切似乎都有效,直到我的最新版本更新,一切都在我自己的笔记本电脑上正常工作。但是一旦我在Heroku上更新我的应用程序,它就会崩溃,我猜并且给了我一个内部服务器错误。这是引用,如果我错过了什么,请告诉我。
2012-11-23T20:29:02+00:00 app[web.1]: Traceback (most recent call last):
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
2012-11-23T20:29:02+00:00 app[web.1]: 2012-11-23 20:29:02 [5] [ERROR] Error handling request
2012-11-23T20:29:02+00:00 app[web.1]: Traceback (most recent call last):
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
2012-11-23T20:29:02+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
2012-11-23T20:29:02+00:00 app[web.1]: self.load_middleware()
2012-11-23T20:29:02+00:00 app[web.1]: for middleware_path in settings.MIDDLEWARE_CLASSES:
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 39, in load_middleware
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-11-23T20:29:02+00:00 app[web.1]: self._setup()
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-11-23T20:29:02+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-11-23T20:29:02+00:00 app[w
eb.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2012-11-23T20:29:02+00:00 app[web.1]: __import__(name)
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-11-23T20:29:02+00:00 app[web.1]: File "/app/django_worksquid/settings.py", line 217, in <module>
2012-11-23T20:29:02+00:00 app[web.1]: djcelery.setup_loader()
2012-11-23T20:29:02+00:00 app[web.1]: NameError: name 'djcelery' is not defined
2012-11-23T20:29:04+00:00 heroku[router]: at=info method=GET path=/ host=boiling-meadow-3591.herokuapp.com fwd= dyno=web.1 queue=0 wait=0ms connect=1ms service=11ms status=500 bytes=135
2012-11-23T20:29:04+00:00 app[web.1]: 2012-11-23 20:29:04 [5] [ERROR] Error handling request
2012-11-23T20:29:04+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2012-11-23T20:29:04+00:00 app[web.1]: self._setup()
2012-11-23T20:29:04+00:00 app[web.1]: Traceback (most recent call last):
2012-11-23T20:29:04+00:00 app[web.1]: self.load_middleware()
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
2012-11-23T20:29:04+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
2012-11-23T20:29:04+00:00 app[web.1]: for middleware_path in settings.MIDDLEWARE_CLASSES:
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-11-23T20:29:04+00:00 app[web.1]: djcelery.setup_loader()
2012-11-23T20:29:04+00:00 app[web.1]: NameError: name 'djcelery' is not defined
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/django_worksquid/settings.py", line 217, in <module>
2012-11-23T20:29:04+00:00 app[web.1]: __import__(name)
2012-11-23T20:29:04+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 39, in load_middleware
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-11-23T20:29:04+00:00 app[web.1]: Traceback (most recent call last):
2012-11-23T20:29:04+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 39, in load_middleware
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-11-23T20:29:04+00:00 app[web.1]: for middleware_path in settings.MIDDLEWARE_CLASSES:
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
2012-11-23T20:29:04+00:00 app[web.1]: self.load_middleware()
2012-11-23T20:29:04+00:00 app[web.1]: 2012-11-23 20:29:04 [5] [ERROR] Error handling request
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
2012-11-23T20:29:04+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-11-23T20:29:04+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/django_worksquid/settings.py", line 217, in <module>
2012-11-23T20:29:04+00:00 app[web.1]: NameError: name 'djcelery' is not defined
2012-11-23T20:29:04+00:00 app[web.1]: djcelery.setup_loader()
2012-11-23T20:29:04+00:00 app[web.1]: self._setup()
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-11-23T20:29:04+00:00 app[web.1]: __import__(name)
2012-11-23T20:29:04+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-11-23T20:29:04+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=boiling-meadow-3591.herokuapp.com fwd= dyno=web.1 queue=0 wait=4ms connect=21ms service=15ms status=500 bytes=135
2012-11-23T20:29:06+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 39, in load_middleware
2012-11-23T20:29:06+00:00 app[web.1]: Traceback (most recent call last):
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
2012-11-23T20:29:06+00:00 app[web.1]: self.load_middleware()
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-11-23T20:29:06+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-11-23T20:29:06+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/django_worksquid/settings.py", line 217, in <module>
2012-11-23T20:29:06+00:00 app[web.1]: djcelery.setup_loader()
2012-11-23T20:29:06+00:00 app[web.1]: 2012-11-23 20:29:06 [5] [ERROR] Error handling request
2012-11-23T20:29:06+00:00 app[web.1]: for middleware_path in settings.MIDDLEWARE_CLASSES:
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-11-23T20:29:06+00:00 app[web.1]: NameError: name 'djcelery' is not defined
2012-11-23T20:29:06+00:00 app[web.1]: self._setup()
2012-11-23T20:29:06+00:00 app[web.1]: __import__(name)
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-11-23T20:29:06+00:00 heroku[router]: at=info method=GET path=/ host=boiling-meadow-3591.herokuapp.com fwd= dyno=web.1 queue=0 wait=4ms connect=12ms service=28ms status=500 bytes=135
2012-11-23T20:29:06+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=boiling-meadow-3591.herokuapp.com fwd= dyno=web.1 queue=0 wait=6ms connect=14ms service=38ms status=500 bytes=135
2012-11-23T20:29:06+00:00 app[web.1]: 2012-11-23 20:29:06 [5] [ERROR] Error handling request
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 39, in load_middleware
2012-11-23T20:29:06+00:00 app[web.1]: Traceback (most recent call last):
2012-11-23T20:29:06+00:00 app[web.1]: for middleware_path in settings.MIDDLEWARE_CLASSES:
2012-11-23T20:29:06+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-11-23T20:29:06+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2012-11-23T20:29:06+00:00 app[web.1]: self._setup()
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-11-23T20:29:06+00:00 app[web.1]: self.load_middleware()
2012-11-23T20:29:06+00:00 app[web.1]: djcelery.setup_loader()
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-11-23T20:29:06+00:00 app[web.1]: File "/app/django_worksquid/settings.py", line 217, in <module>
2012-11-23T20:29:06+00:00 app[web.1]: __import__(name)
2012-11-23T20:29:06+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2012-11-23T20:29:06+00:00 app[web.1]: NameError: name 'djcelery' is not defined