Created
October 4, 2012 16:18
-
-
Save gdevanla/3834706 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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