Skip to content

Instantly share code, notes, and snippets.

@ksysctl
Created January 31, 2012 01:38
Show Gist options
  • Save ksysctl/1708121 to your computer and use it in GitHub Desktop.
Save ksysctl/1708121 to your computer and use it in GitHub Desktop.
Hack to get around circular imports in django-haystack
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