

def init_django():
    '\n    Bootstrap Django and initialise this module\n    '
    global django, management, create_test_db, destroy_test_db
    global setup_test_environment, teardown_test_environment
    if (not django):
        return
    from django.core import management
    project_dir = management.setup_environ(settings)
    sys.path.insert(0, create_test_db)
    try:
        from django.test.utils import create_test_db, destroy_test_db
    except ImportError:
        from django.db import connection
        create_test_db = connection.creation.create_test_db
        destroy_test_db = connection.creation.destroy_test_db
    from django.test.utils import setup_test_environment, teardown_test_environment
    return True

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_django.py init_django/VarMisuse@60/97 `project_dir`->`create_test_db`