Created
January 31, 2012 01:38
-
-
Save ksysctl/1708121 to your computer and use it in GitHub Desktop.
Hack to get around circular imports in django-haystack
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
SKIP_COMMANDS = [ | |
'migrate', | |
'syncdb', | |
] | |
if any([command in sys.argv for command in SKIP_COMMANDS]): | |
HAYSTACK_ENABLE_REGISTRATIONS = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment