1

Herokuに最初の django アプリをデプロイしようとしており、Heroku サイトのガイドに従っています。Web プロセスが起動しているかどうか、アプリがクラッシュしているように見えるかどうかを確認するためのこのステップまでずっと進みます。

(venv)Jonathans-MacBook-Air-2:myportfolio jonathanschen$ heroku ps
=== web: `python ./manage.py runserver 0.0.0.0:$PORT --noreload`
web.1: crashed for 2m

ログを確認すると、たくさんあります。stackoverflow に関するさまざまな投稿をいくつか読んだことがありますが、ルート ディレクトリに proc ファイルが必要かどうか疑問に思っています (回答が矛盾しているようです)。それがクラッシュの原因でしょうか?いつものように、事前にスタックオーバーフローに感謝します。ログは次のとおりです。

(venv)Jonathans-MacBook-Air-2:myportfolio jonathanschen$ heroku logs
2012-08-01T18:29:55+00:00 app[web.1]:     self.fetch_command(subcommand).run_from_argv(self.argv)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
2012-08-01T18:29:55+00:00 app[web.1]:     self.execute(*args, **options.__dict__)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
2012-08-01T18:29:55+00:00 app[web.1]:     output = self.handle(*args, **options)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 69, in handle
2012-08-01T18:29:55+00:00 app[web.1]:     self.run(*args, **options)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 80, in run
2012-08-01T18:29:55+00:00 app[web.1]:     self.inner_run(*args, **options)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
2012-08-01T18:29:55+00:00 app[web.1]:     self.validate(display_num_errors=True)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
2012-08-01T18:29:55+00:00 app[web.1]:     num_errors = get_validation_errors(s, app)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/validation.py", line 23, in get_validation_errors
2012-08-01T18:29:55+00:00 app[web.1]:     from django.db import models, connection
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/__init__.py", line 40, in <module>
2012-08-01T18:29:55+00:00 app[web.1]:     backend = load_backend(connection.settings_dict['ENGINE'])
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__
2012-08-01T18:29:55+00:00 app[web.1]:     return getattr(connections[DEFAULT_DB_ALIAS], item)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/utils.py", line 92, in __getitem__
2012-08-01T18:29:55+00:00 app[web.1]:     backend = load_backend(db['ENGINE'])
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/utils.py", line 24, in load_backend
2012-08-01T18:29:55+00:00 app[web.1]:     return import_module('.base', backend_name)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 34, in import_module
2012-08-01T18:29:55+00:00 app[web.1]:     name = _resolve_name(name[level:], package, level)
2012-08-01T18:29:55+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 7, in _resolve_name
2012-08-01T18:29:55+00:00 app[web.1]:     raise ValueError("'package' not set to a string")
2012-08-01T18:29:55+00:00 app[web.1]: ValueError: 'package' not set to a string
2012-08-01T18:29:56+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T18:29:56+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-01T18:41:41+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-01T18:41:45+00:00 heroku[web.1]: Starting process with command `python ./manage.py runserver 0.0.0.0:22549 --noreload`
2012-08-01T18:41:46+00:00 app[web.1]: Validating models...
2012-08-01T18:41:46+00:00 app[web.1]: 
2012-08-01T18:41:46+00:00 app[web.1]: Traceback (most recent call last):
2012-08-01T18:41:46+00:00 app[web.1]:   File "./manage.py", line 10, in <module>
2012-08-01T18:41:46+00:00 app[web.1]:     execute_from_command_line(sys.argv)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
2012-08-01T18:41:46+00:00 app[web.1]:     self.fetch_command(subcommand).run_from_argv(self.argv)
2012-08-01T18:41:46+00:00 app[web.1]:     utility.execute()
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
2012-08-01T18:41:46+00:00 app[web.1]:     self.execute(*args, **options.__dict__)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 80, in run
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 69, in handle
2012-08-01T18:41:46+00:00 app[web.1]:     output = self.handle(*args, **options)
2012-08-01T18:41:46+00:00 app[web.1]:     self.run(*args, **options)
2012-08-01T18:41:46+00:00 app[web.1]:     self.validate(display_num_errors=True)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
2012-08-01T18:41:46+00:00 app[web.1]:     self.inner_run(*args, **options)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/validation.py", line 23, in get_validation_errors
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/__init__.py", line 40, in <module>
2012-08-01T18:41:46+00:00 app[web.1]:     num_errors = get_validation_errors(s, app)
2012-08-01T18:41:46+00:00 app[web.1]:     backend = load_backend(connection.settings_dict['ENGINE'])
2012-08-01T18:41:46+00:00 app[web.1]:     from django.db import models, connection
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
2012-08-01T18:41:46+00:00 app[web.1]:     return getattr(connections[DEFAULT_DB_ALIAS], item)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/utils.py", line 92, in __getitem__
2012-08-01T18:41:46+00:00 app[web.1]:     backend = load_backend(db['ENGINE'])
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/utils.py", line 24, in load_backend
2012-08-01T18:41:46+00:00 app[web.1]:     return import_module('.base', backend_name)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 34, in import_module
2012-08-01T18:41:46+00:00 app[web.1]:     name = _resolve_name(name[level:], package, level)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 7, in _resolve_name
2012-08-01T18:41:46+00:00 app[web.1]:     raise ValueError("'package' not set to a string")
2012-08-01T18:41:46+00:00 app[web.1]: ValueError: 'package' not set to a string
2012-08-01T18:41:47+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T18:41:47+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-01T18:46:00+00:00 heroku[slugc]: Slug compilation started
2012-08-01T18:48:55+00:00 heroku[api]: Release v5 created by jonathanschen@gmail.com
2012-08-01T18:48:55+00:00 heroku[api]: Deploy f097e62 by jonathanschen@gmail.com
2012-08-01T18:48:55+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-01T18:48:56+00:00 heroku[slugc]: Slug compilation finished
2012-08-01T18:48:58+00:00 heroku[web.1]: Starting process with command `python ./manage.py runserver 0.0.0.0:23141 --noreload`
2012-08-01T18:48:59+00:00 app[web.1]: Traceback (most recent call last):
2012-08-01T18:48:59+00:00 app[web.1]:   File "./manage.py", line 10, in <module>
2012-08-01T18:48:59+00:00 app[web.1]:     execute_from_command_line(sys.argv)
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
2012-08-01T18:48:59+00:00 app[web.1]:     utility.execute()
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 252, in fetch_command
2012-08-01T18:48:59+00:00 app[web.1]:     self.fetch_command(subcommand).run_from_argv(self.argv)
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 101, in get_commands
2012-08-01T18:48:59+00:00 app[web.1]:     app_name = get_commands()[subcommand]
2012-08-01T18:48:59+00:00 app[web.1]:     apps = settings.INSTALLED_APPS
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-08-01T18:48:59+00:00 app[web.1]:     mod = importlib.import_module(self.SETTINGS_MODULE)
2012-08-01T18:48:59+00:00 app[web.1]:     self._wrapped = Settings(settings_module)
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-08-01T18:48:59+00:00 app[web.1]:     self._setup()
2012-08-01T18:48:59+00:00 app[web.1]:     ^
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/myportfolio/settings.py", line 23
2012-08-01T18:48:59+00:00 app[web.1]: SyntaxError: invalid syntax
2012-08-01T18:48:59+00:00 app[web.1]:     __import__(name)
2012-08-01T18:48:59+00:00 app[web.1]:     }
2012-08-01T18:49:00+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T18:49:00+00:00 heroku[web.1]: State changed from starting to crashed
(venv)Jonathans-MacBook-Air-2:myportfolio jonathanschen$ heroku ps
=== web: `python ./manage.py runserver 0.0.0.0:$PORT --noreload`
web.1: crashed for 1m

(venv)Jonathans-MacBook-Air-2:myportfolio jonathanschen$ heroku ps
=== web: `python ./manage.py runserver 0.0.0.0:$PORT --noreload`
web.1: crashed for 2m

(venv)Jonathans-MacBook-Air-2:myportfolio jonathanschen$ heroku logs
2012-08-01T18:29:55+00:00 app[web.1]: ValueError: 'package' not set to a string
2012-08-01T18:29:56+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T18:29:56+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-01T18:41:41+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-01T18:41:45+00:00 heroku[web.1]: Starting process with command `python ./manage.py runserver 0.0.0.0:22549 --noreload`
2012-08-01T18:41:46+00:00 app[web.1]: Validating models...
2012-08-01T18:41:46+00:00 app[web.1]: 
2012-08-01T18:41:46+00:00 app[web.1]: Traceback (most recent call last):
2012-08-01T18:41:46+00:00 app[web.1]:   File "./manage.py", line 10, in <module>
2012-08-01T18:41:46+00:00 app[web.1]:     execute_from_command_line(sys.argv)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
2012-08-01T18:41:46+00:00 app[web.1]:     self.fetch_command(subcommand).run_from_argv(self.argv)
2012-08-01T18:41:46+00:00 app[web.1]:     utility.execute()
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
2012-08-01T18:41:46+00:00 app[web.1]:     self.execute(*args, **options.__dict__)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 80, in run
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 69, in handle
2012-08-01T18:41:46+00:00 app[web.1]:     output = self.handle(*args, **options)
2012-08-01T18:41:46+00:00 app[web.1]:     self.run(*args, **options)
2012-08-01T18:41:46+00:00 app[web.1]:     self.validate(display_num_errors=True)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
2012-08-01T18:41:46+00:00 app[web.1]:     self.inner_run(*args, **options)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/validation.py", line 23, in get_validation_errors
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/__init__.py", line 40, in <module>
2012-08-01T18:41:46+00:00 app[web.1]:     num_errors = get_validation_errors(s, app)
2012-08-01T18:41:46+00:00 app[web.1]:     backend = load_backend(connection.settings_dict['ENGINE'])
2012-08-01T18:41:46+00:00 app[web.1]:     from django.db import models, connection
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
2012-08-01T18:41:46+00:00 app[web.1]:     return getattr(connections[DEFAULT_DB_ALIAS], item)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/utils.py", line 92, in __getitem__
2012-08-01T18:41:46+00:00 app[web.1]:     backend = load_backend(db['ENGINE'])
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/utils.py", line 24, in load_backend
2012-08-01T18:41:46+00:00 app[web.1]:     return import_module('.base', backend_name)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 34, in import_module
2012-08-01T18:41:46+00:00 app[web.1]:     name = _resolve_name(name[level:], package, level)
2012-08-01T18:41:46+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 7, in _resolve_name
2012-08-01T18:41:46+00:00 app[web.1]:     raise ValueError("'package' not set to a string")
2012-08-01T18:41:46+00:00 app[web.1]: ValueError: 'package' not set to a string
2012-08-01T18:41:47+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T18:41:47+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-01T18:46:00+00:00 heroku[slugc]: Slug compilation started
2012-08-01T18:48:55+00:00 heroku[api]: Release v5 created by jonathanschen@gmail.com
2012-08-01T18:48:55+00:00 heroku[api]: Deploy f097e62 by jonathanschen@gmail.com
2012-08-01T18:48:55+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-01T18:48:56+00:00 heroku[slugc]: Slug compilation finished
2012-08-01T18:48:58+00:00 heroku[web.1]: Starting process with command `python ./manage.py runserver 0.0.0.0:23141 --noreload`
2012-08-01T18:48:59+00:00 app[web.1]: Traceback (most recent call last):
2012-08-01T18:48:59+00:00 app[web.1]:   File "./manage.py", line 10, in <module>
2012-08-01T18:48:59+00:00 app[web.1]:     execute_from_command_line(sys.argv)
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
2012-08-01T18:48:59+00:00 app[web.1]:     utility.execute()
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 252, in fetch_command
2012-08-01T18:48:59+00:00 app[web.1]:     self.fetch_command(subcommand).run_from_argv(self.argv)
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 101, in get_commands
2012-08-01T18:48:59+00:00 app[web.1]:     app_name = get_commands()[subcommand]
2012-08-01T18:48:59+00:00 app[web.1]:     apps = settings.INSTALLED_APPS
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-08-01T18:48:59+00:00 app[web.1]:     mod = importlib.import_module(self.SETTINGS_MODULE)
2012-08-01T18:48:59+00:00 app[web.1]:     self._wrapped = Settings(settings_module)
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-08-01T18:48:59+00:00 app[web.1]:     self._setup()
2012-08-01T18:48:59+00:00 app[web.1]:     ^
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-08-01T18:48:59+00:00 app[web.1]:   File "/app/myportfolio/settings.py", line 23
2012-08-01T18:48:59+00:00 app[web.1]: SyntaxError: invalid syntax
2012-08-01T18:48:59+00:00 app[web.1]:     __import__(name)
2012-08-01T18:48:59+00:00 app[web.1]:     }
2012-08-01T18:49:00+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T18:49:00+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-01T19:03:18+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-01T19:03:21+00:00 heroku[web.1]: Starting process with command `python ./manage.py runserver 0.0.0.0:20934 --noreload`
2012-08-01T19:03:22+00:00 app[web.1]: Traceback (most recent call last):
2012-08-01T19:03:22+00:00 app[web.1]:   File "./manage.py", line 10, in <module>
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
2012-08-01T19:03:22+00:00 app[web.1]:     execute_from_command_line(sys.argv)
2012-08-01T19:03:22+00:00 app[web.1]:     utility.execute()
2012-08-01T19:03:22+00:00 app[web.1]:     self.fetch_command(subcommand).run_from_argv(self.argv)
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 252, in fetch_command
2012-08-01T19:03:22+00:00 app[web.1]:     app_name = get_commands()[subcommand]
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 101, in get_commands
2012-08-01T19:03:22+00:00 app[web.1]:     apps = settings.INSTALLED_APPS
2012-08-01T19:03:22+00:00 app[web.1]:     self._setup()
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2012-08-01T19:03:22+00:00 app[web.1]:     self._wrapped = Settings(settings_module)
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
2012-08-01T19:03:22+00:00 app[web.1]:     mod = importlib.import_module(self.SETTINGS_MODULE)
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/.heroku/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
2012-08-01T19:03:22+00:00 app[web.1]:   File "/app/myportfolio/settings.py", line 23
2012-08-01T19:03:22+00:00 app[web.1]:     ^
2012-08-01T19:03:22+00:00 app[web.1]: SyntaxError: invalid syntax
2012-08-01T19:03:22+00:00 app[web.1]:     __import__(name)
2012-08-01T19:03:22+00:00 app[web.1]:     }
2012-08-01T19:03:23+00:00 heroku[web.1]: Process exited with status 1
2012-08-01T19:03:24+00:00 heroku[web.1]: State changed from starting to crashed
4

3 に答える 3

3

同じ問題があり、ログ(herokuログ)を見ると、モジュールpsycopg2が見つからなかったことがわかりました。

psycopg2==2.4.5をrequirements.txtファイルに追加すると解決しました

于 2013-01-15T12:37:08.563 に答える
0

私はちょうどこれと同じ問題を抱えていて、多くの問題の後にそれを理解しました。

pip freeze > requirements.txt を実行すると、ファイルからいくつかの必要な項目が除外されていることに気付きました。

注目すべきは次の 2 つでした。

whitenoise==1.0.6 wsgiref==0.1.2

ここに行くことで、そこに絶対に必要なものを見つけることができます:

Heroku Django テンプレート -- requirements.txt

于 2015-04-17T20:20:21.147 に答える
0

私はこの問題を抱えていましたが、問題は settings.py ファイルの構文エラーでした。

于 2012-08-13T21:52:27.627 に答える