Heroku로 첫 번째 실제 웹 사이트를 배포하려고합니다. 과거에 한 번은 매우 간단한 웹 사이트로 성공적으로 배포했지만 이번에는 멈춘 것 같습니다. 사이트를 로컬에서 잘 실행할 수 있습니다.
Heroku에서 무료로 배포를 클릭하면 성공적으로 앱 생성, 환경 구성 및 앱 빌드가 완료됩니다. 이 오류는 Run scripts & scale dynos 부분에서 '배포 후 종료 코드가 0이 아닙니다'라고 말합니다.
내 프로젝트를 시작하기 위해 cookiecutter-django 와 함께 Django 1.9.4를 사용하고 있습니다. 나는 또한 내 프로젝트 에 wagtail 을 추가 하고 그것으로 꽤 간단한 페이지를 만들었습니다. 내 다른 파일을 보려면 알려주십시오. 나는 이것으로 헤매고 있습니다.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "django_content_type" does not exist
LINE 1: ..."."app_label", "django_content_type"."model" FROM "django_co...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.5/site-packages/django/contrib/contenttypes/models.py", line 67, in get_for_model
ct = self.get(app_label=opts.app_label, model=opts.model_name)
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/models/manager.py", line 122, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/models/query.py", line 381, in get
num = len(clone)
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/models/query.py", line 240, in __len__
self._fetch_all()
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/models/query.py", line 1074, in _fetch_all
self._result_cache = list(self.iterator())
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/models/query.py", line 52, in __iter__
results = compiler.execute_sql()
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 848, in execute_sql
cursor.execute(sql, params)
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/utils.py", line 95, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/app/.heroku/python/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/app/.heroku/python/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "django_content_type" does not exist
LINE 1: ..."."app_label", "django_content_type"."model" FROM "django_co...
^
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/base.py", line 398, in execute
self.check()
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/base.py", line 426, in check
include_deployment_checks=include_deployment_checks,
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/checks/registry.py", line 75, in run_checks
new_errors = check(app_configs=app_configs)
File "/app/.heroku/python/lib/python3.5/site-packages/django/core/checks/model_checks.py", line 28, in check_all_models
errors.extend(model.check(**kwargs))
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailcore/models.py", line 572, in check
if not issubclass(edit_handler.get_form_class(cls), WagtailAdminPageForm):
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 294, in get_form_class
formsets=cls.required_formsets(),
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 240, in required_formsets
formsets.update(handler_class.required_formsets())
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 240, in required_formsets
formsets.update(handler_class.required_formsets())
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 603, in required_formsets
'widgets': child_edit_handler_class.widget_overrides(),
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 216, in widget_overrides
widgets.update(handler_class.widget_overrides())
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 216, in widget_overrides
widgets.update(handler_class.widget_overrides())
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 516, in widget_overrides
content_type=cls.target_content_type(), can_choose_root=cls.can_choose_root)}
File "/app/.heroku/python/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 543, in target_content_type
cls._target_content_type = [ContentType.objects.get_for_model(target_model)]
File "/app/.heroku/python/lib/python3.5/site-packages/django/contrib/contenttypes/models.py", line 80, in get_for_model
"Error creating new content types. Please make sure contenttypes "
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
Wagtail 1.4.3을 아직 사용하지 않았다면 업그레이드를 시도하십시오. 최신 릴리스는 처음부터 프로젝트 데이터베이스를 가져 오는 것과 관련된 몇 가지 문제를 해결합니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다