Django 응용 프로그램 (아직 개발 중)이 Django-Cms 2.4 및 기타 종속성으로 작성되었지만 문제는 AWS Beanstalk Environment, 01_syncdb 아래의 명령은 settings.py의 INSTALLED_APPS에 새 앱을 추가 할 때마다 실패합니다. .config 파일 Django-Cms 2.4 AWS Beanstalk의 사우스 마이 그 레이션
에서
나는 용기 명령에 있습니다01_syncdb:
command: "django-admin.py syncdb --noinput"
leader_only = True
02_migrate:
command: "django-admin.py migrate --noinput"
leader_only = True
로그
2013-08-20 10:21:46,812 [DEBUG] (19029 MainThread) [commandWrapper.py-60] [root commandWrapper main] Command result: {'status': 'FAILURE', 'results': [{'status': 'FAILURE', 'config_set': u'Infra-EmbeddedPostBuild', 'returncode': 1, 'events': [], 'msg': 'Error occurred during build: Command 01_syncdb failed\n'}], 'api_version': '1.0'}
무엇이 잘못 될 수 있을까? 감사합니다
내가 한국에 새로운 오전, 나는이 튜토리얼에서 읽은 것을에서 당신은'파이썬 manage.py의 schemamigration의 --auto' 전화를해야하고'파이썬 myapp' 권리를 마이그레이션 manage.py를? 왜 포함되어 있지 않습니까? – barrigaj
'schemamigration'은 기본적으로 스키마를 마이그레이션하는 방법에 대한 '청사진'역할을하는 마이그레이션 파일을 만듭니다. 즉, 마이그레이션 파일이 만들어지면 (일반적으로 로컬 환경에서 수행하고 프로젝트로 푸시/업로드) 일반적으로 더 이상 명령 ('schemamigration')을 다시 호출 할 필요가 없습니다. 'migrate' 명령은 기본적으로 생성 된 마이그레이션 파일과 데이터베이스의 현재 상태를 기반으로 스키마를 마이그레이션합니다. – GrandPhuba