Friday, August 10, 2007

Use a Django project in a standalone script

simple in project directory~~
from django.core.management import setup_environ
import settings
setup_environ(settings)

but this didn't work with python console or ipython with error ": Empty module name"

No comments: