Django 1.7 - makemigrations not detecting changes

前端 未结 29 1513
忘了有多久
忘了有多久 2020-11-27 12:43

As the title says, I can\'t seem to get migrations working.

The app was originally under 1.6, so I understand that migrations won\'t be there initially, and indeed i

29条回答
  •  忘掉有多难
    2020-11-27 12:51

    Following worked for me:

    1. Add the app name to settings.py
    2. use 'python manage.py makemigrations'
    3. use 'python manage.py migrate'

    Worked for me: Python 3.4, Django 1.10

提交回复
热议问题