2014-09-07 2 views
1
$python manage.py syncdb 
Operations to perform: 
    Apply all migrations: admin, contenttypes, auth, sessions 
Running migrations: 
    No migrations to apply. 
    Your models have changes that are not yet reflected in a migration, and so won't be applied. 
    Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. 

오류 PRINTSCREEN가없음 마이그레이션

enter image description here

내가 어떤 문제를 모르는 적용 없습니다!

+0

무엇이 당신의 질문입니까? 'manage.py makemigrations'는 작동합니까? – Norman8054

+0

내가 syncdb하려고하면이 문제가 뭔지 몰라 나타나는 오류입니다! – Alwerdani

답변

5

명령 줄 출력에 문제가 모델을 변경했다는 메시지가 표시됩니다. 해결책은 python manage.py makemigrations을 실행 한 다음 python manage.py migrate을 실행하는 것입니다.

+0

감사합니다 :)))) – Alwerdani

관련 문제