Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Specification of the location of the migration directory #31

Merged
merged 1 commit into from
Jan 5, 2012

Conversation

dstufft
Copy link
Contributor

@dstufft dstufft commented Jan 5, 2012

Currently nashvegas assumes that the location of the migration directory is located alongside the file that the settings are from.

However this breaks when you use settings as a module like

settings
├── __init__.py
├── base.py
├── dev
│   ├── __init__.py
│   └── base.py
└── production
    ├── __init__.py
    ├── base.py
    └── gondor.py

This pull request adds a setting NASHVEGAS_MIGRATION_DIRECTORY that can be used to manually specify the location of the migrations directory. If this setting is missing it falls back to the previous method.

@paltman
Copy link
Collaborator

paltman commented Jan 5, 2012

Cool. I think this takes care of #30 that just came in the other day.

paltman added a commit that referenced this pull request Jan 5, 2012
Allow Specification of the location of the migration directory
@paltman paltman merged commit dd0a80f into paltman-archive:master Jan 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants