Ticket #35 (closed defect: fixed)
get_migration_names(app) returns too many files on mac (bc of hidden files)
|Reported by:||michael@…||Owned by:||andrew|
after writing a deploy script which moves all of the files to the server and then runs migrations i encountered a problem with the files created on mac which starts with ._
On mac the os functions takes care of it, but when moving the files to linux using tar for instance, these files will show up when get_migration_names(app) traverses the folder.
The solution is pretty simple: change line 61 in migration.py from
if filename.endswith(".py") and filename != "__init__.py"
if filename.endswith(".py") and filename != "__init__.py" and not filename.startswith('.')