managed
managed=False
makemigrations
- https://github.com/django/django/blob/master/django/core/management/commands/makemigrations.py
Create Migrations with
'managed': False
inmigrations.CreateModel
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='', fields=[ ], options={ 'managed': False, }, ), ]
migrate
- https://github.com/django/django/blob/master/django/core/management/commands/migrate.py
- Insert into table
django_migrations
- Skip
managed=False
References
[1] Docs@DjangoProject, Model Meta options - Options.managed
[2] thekorn@StackOverflow, django: exclude models from migrations
[3] Ticket@DjangoProject, Migrations do not ignore unmanaged models (unlike syncdb)