When you say, "remove all previous migration codes" -- you mean you removed all the migration files such as 0001_initial.py? In that case, make sure you don't remove the __init__.py file, otherwise you must use "makemigrations app_name".
On Thursday, April 19, 2018 at 7:18:02 AM UTC-4, guzheng2000 wrote: > > Hi, > > Django prompts "no changes..." when I want to re-create migration codes by > calling makemigrations after remove all previous migration codes. After > some digs, I found it can be fixed by changing: > [autodetector.py:151] "al not in self.from_state.real_apps " ==> "al not > in self.to_state.real_apps" > > Just let you guys know, I'm not sure it is correct. > thanks, > gz > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b0d0da83-2935-418f-85b8-433f0eac5cfc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.