Skip to content

Instantly share code, notes, and snippets.

@gdevanla
Created October 4, 2012 16:18
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 gdevanla/3834706 to your computer and use it in GitHub Desktop.
Save gdevanla/3834706 to your computer and use it in GitHub Desktop.
# use this code to run any django script with django environment
import settings
from django.core.management import setup_environ
setup_environ(settings)
http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment