Remove app (and associated database tables) in Django 1.7

不羁的心 提交于 2019-12-04 11:08:17

问题


Is it possible to use Django 1.7 migrations to completely remove/uninstall an app and all its traces (mainly, all its database tables)?

If not, what is the appropriate way of doing this in Django 1.7?


回答1:


python manage.py migrate <app> zero


来源:https://stackoverflow.com/questions/31892027/remove-app-and-associated-database-tables-in-django-1-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!