--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1dbf1434-b24a-47c9-b45b-ae04530d7867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
95 for name in os.listdir(directory):
96 if name.endswith(".py"):
97 import_name = name.rsplit(".", 1)[0]
98 if import_name[0] not in "_.~":
99 migration_names.add(import_name)
Your problem is likely that the pyc file for the new initial migration somehow seems newer than the py file and so Python is using it over the new source file.
I'm not sure how this happens if it's a new migration, but I've seen it happening when switching git branches before. We have pyc files turned off in dev to stop this.
Andrew
--