Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from treyhunner/south-error-on-import
South error on import
- Loading branch information
Showing
2 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
""" | ||
Django migrations for taggit app | ||
This package does not contain South migrations. South migrations can be found | ||
in the ``south_migrations`` package. | ||
""" | ||
|
||
SOUTH_ERROR_MESSAGE = """\n | ||
For South support, customize the SOUTH_MIGRATION_MODULES setting like so: | ||
SOUTH_MIGRATION_MODULES = { | ||
'taggit': 'taggit.south_migrations', | ||
} | ||
""" | ||
|
||
# Ensure the user is not using Django 1.6 or below with South | ||
try: | ||
from django.db import migrations # noqa | ||
except ImportError: | ||
from django.core.exceptions import ImproperlyConfigured | ||
raise ImproperlyConfigured(SOUTH_ERROR_MESSAGE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters