Exclude app from Django migration

Is there a way to exclude application models from Django migrations? I know modifying model metafiles with managed = False

is an option, but a lot of models to edit every time. Is there a way to tell the application whose models I don't want to port?

+3


source to share


2 answers


Removing the file __init__.py

from the app migration directory should work.



+1


source


uninstall the app from installed apps in your settings.



+1


source







All Articles