What is the difference between django.db.backends.dummy and django.db.backends.mysql?
1 answer
django.db.backends.mysql
used when the database is backend MySQL
.
This is determined by the database parameters Engine
ENGINE = `django.db.backends.postgresql_psycopg2`
If as, is django.db.backends.dummy
not a per-word setting, but starts with
ENGINE = '' # The default setting for ENGINE
Besides,
Digging into the source code fordjango.db.backends.dummy
,
Django uses this if the database DATA parameter is empty (None or empty string).
It also dummy
raises an error:
ImproperlyConfigured("settings.DATABASES is improperly configured. "
"Please supply the ENGINE value. Check "
"settings documentation for more details.")
+3
source to share