Re: How to know which models have changed and need make migrations?

2016-04-09 Thread Tim Graham
Also, your models might reference a setting whose value differs between development and production. This probably won't cause any problems but will trip up the migrations autodetector into thinking that a migration needs to be made. https://code.djangoproject.com/ticket/24648 On Saturday, Apri

Re: How to know which models have changed and need make migrations?

2016-04-09 Thread jorrit787
I've run into the problem of migration files not being added to source control with PyCharm because PyCharm doesn't seem to automatically commit auto-created files unless you explicitly tell it to in the settings (and even then it doesn't always work). -- You received this message because you

Re: How to know which models have changed and need make migrations?

2016-04-08 Thread C. Kirby
Are you sure you are adding your new migrations to your source control? It sounds like the model changes are being correctly commited but the generated migrations are not. On Friday, April 8, 2016 at 11:17:16 AM UTC-5, Neto wrote: > > I know, but in production is showing the message that I have

Re: How to know which models have changed and need make migrations?

2016-04-08 Thread Neto
I know, but in production is showing the message that I have to do makemigrations. I need a command to know what models need to makemigrations Em quinta-feira, 7 de abril de 2016 14:50:54 UTC-3, Daniel Roseman escreveu: > > You shouldn't ever need to make migrations in production. You make them i

How to know which models have changed and need make migrations?

2016-04-07 Thread Daniel Roseman
You shouldn't ever need to make migrations in production. You make them in dev, commit to source control, deploy along with the rest of the code, then run the migrations in prod. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

How to know which models have changed and need make migrations?

2016-04-07 Thread Neto
In my localhost is everything migrated, but in production have "Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them." How to know which models have changed and need make migrations? Exist a command to know?