Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Small performance tweak - avoid loading in DB …

…backend code (and dependencies) will usually not be needed in a web context.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 363177ea32184f21a59eee64d199a484d7c94582 1 parent af5ad11
@spookylukey spookylukey authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/db/backends/
4 django/db/backends/
@@ -2,7 +2,6 @@
import time
from django.conf import settings
-from import call_command
# The prefix to put on the default database name when creating
# the test database.
@@ -338,6 +337,9 @@ def create_test_db(self, verbosity=1, autoclobber=False):
Creates a test database, prompting the user for confirmation if the
database already exists. Returns the name of the test database created.
+ # Don't import if it isn't needed.
+ from import call_command
test_database_name = self._get_test_db_name()
if verbosity >= 1:

0 comments on commit 363177e

Please sign in to comment.
Something went wrong with that request. Please try again.