Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-taggit
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
edb1753f
authored
Apr 05, 2014
by
Trey Hunner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise error if taggit.migrations imported for Django <=1.6
Fixes gh-219.
parent
fddd0627
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
taggit/migrations/__init__.py
+21
-0
No files found.
taggit/migrations/__init__.py
View file @
edb1753f
"""
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment