mirror of
https://github.com/django/django.git
synced 2025-08-24 02:39:14 +00:00
magic-removal: Deferred import of django.db.models to allow --settings option to work on runtests.py.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6a90f49fe5
commit
96c66c7fdb
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, re, sys, time, traceback
|
import os, re, sys, time, traceback
|
||||||
import django.db.models
|
|
||||||
|
|
||||||
# doctest is included in the same package as this module, because this testing
|
# doctest is included in the same package as this module, because this testing
|
||||||
# framework uses features only available in the Python 2.4 version of doctest,
|
# framework uses features only available in the Python 2.4 version of doctest,
|
||||||
@ -79,6 +78,7 @@ class TestRunner:
|
|||||||
|
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
from django.core import management
|
from django.core import management
|
||||||
|
import django.db.models
|
||||||
|
|
||||||
# Determine which models we're going to test.
|
# Determine which models we're going to test.
|
||||||
test_models = get_test_models()
|
test_models = get_test_models()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user