Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
autotest
/
e7bd9369b76e2bbdc230c3c1aeb9afc6e6ec60ba
/
frontend
/
setup_django_environment.py
fa8629c
-ensure Django connection is autocommit enabled, when used from monitor_db
by showard
· 16 years ago
364fe86
Refactor the basic environment setup code out of django_test_utils.py into setup_django_environment.py, and rename django_test_utils.py to setup_test_environment.py. Also changed the environment setup code to run at import time. This makes it easy for scripts, both test and non-test, to use Django models without running through manage.py. The idea is that scripts will import setup_django_environment before importing Django code (somewhat akin to common.py), and test code will subsequently import setup_test_environment.
by showard
· 16 years ago