Skip to content

Instantly share code, notes, and snippets.

@ewheeler
Created August 9, 2010 20:12
Show Gist options
  • Save ewheeler/516020 to your computer and use it in GitHub Desktop.
Save ewheeler/516020 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import sys, os
from django.core.management import execute_manager
import settings
if __name__ == "__main__":
project_root = os.path.abspath(
os.path.dirname(__file__))
for dir in ["apps"]:
path = os.path.join(project_root, dir)
sys.path.insert(0, path)
sys.path.insert(0, project_root)
execute_manager(settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment