Skip to content

Instantly share code, notes, and snippets.

@norrs
Created August 13, 2013 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norrs/6219626 to your computer and use it in GitHub Desktop.
Save norrs/6219626 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "../.."))
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nav.django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment