Tuesday, June 6, 2017

Re: makemigrations running for all apps defined in INSTALLED_APP

On Tuesday 06 June 2017 05:45:32 devansh dixit wrote:

> > just run >>> python manage.py migrations this will help

>

> you

 

No, it won't.

First it's `makemigrations`, second, he doesn't want to migrate the model, just the code.

It's an unmanaged model, so the correct fix, as Daniel pointed out is to declare the model as such.

 

And to clarify, why returning false in the router doesn't help:

The router check is one of 3 checks done. If any of the checks return True, it will attempt to make a migration.

--

Melvyn Sopacua

No comments:

Post a Comment