Migrations in stand alone Django app

后端 未结 2 1060
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 14:06

How do I makemigrations on a stand alone Django app (ie one that is not part if any project).

For example after following: https://docs.djangoproject.com/en/1.8/intr

2条回答
  •  Happy的楠姐
    2021-01-13 14:25

    What I do is to create a mock project, containing only that app, then the process is as usual:

    manage.py makemigrations myapp
    

提交回复
热议问题