Skip to content

Instantly share code, notes, and snippets.

@ilyeshammadi
Created December 28, 2015 03:16
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 ilyeshammadi/624db30e55d7018f2002 to your computer and use it in GitHub Desktop.
Save ilyeshammadi/624db30e55d7018f2002 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os, sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "root.settings")
# Add the lib/ directory to the system path
sys.path.append("lib")
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