Ignore .pyc files by default in migrations #43

Merged
merged 1 commit into from Mar 13, 2012

2 participants

@brutasse

I deployed packaged django projects and for some reason I get .pyc files in my migrations directory.

This ignores them by default, although I'm not sure nashvegas should cry that loud when an extension isn't recognized. A RuntimeWarning is probably enough…

@paltman paltman and 1 other commented on an outdated diff Mar 13, 2012
nashvegas/management/commands/upgradedb.py
number = int(match.group(1))
if ext in [".sql", ".py"]:
possible_migrations[database].append((number, full_path))
- else:
@paltman
paltman added a line comment Mar 13, 2012

Actually, I think we should just delete the entire else: condition. If there are any files other than .sql or .py just ignore them.

Can you just delete lines 138-140 and undo the whitespace changes? Much appreciated!

@brutasse
brutasse added a line comment Mar 13, 2012

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@paltman paltman merged commit d561c01 into paltman-archive:master Mar 13, 2012
@paltman

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment