2010-02-23 21:45:50 +01:00
|
|
|
# This is an example test settings file for use with the Django test suite.
|
|
|
|
#
|
|
|
|
# The 'sqlite3' backend requires only the ENGINE setting (an in-
|
|
|
|
# memory database will be used). All other backends will require a
|
|
|
|
# NAME and potentially authentication information. See the
|
|
|
|
# following section in the docs for more information:
|
|
|
|
#
|
2011-12-14 15:49:00 +01:00
|
|
|
# https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
|
2010-02-23 21:45:50 +01:00
|
|
|
#
|
|
|
|
# The different databases that Django supports behave differently in certain
|
|
|
|
# situations, so it is recommended to run the test suite against as many
|
|
|
|
# database backends as possible. You may want to create a separate settings
|
|
|
|
# file for each of the backends you test against.
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3'
|
|
|
|
},
|
|
|
|
'other': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
}
|
|
|
|
}
|
2012-03-02 01:05:13 +01:00
|
|
|
|
|
|
|
SECRET_KEY = "django_tests_secret_key"
|
2012-04-30 20:40:02 +02:00
|
|
|
# To speed up tests under SQLite we use the MD5 hasher as the default one.
|
|
|
|
# This should not be needed under other databases, as the relative speedup
|
|
|
|
# is only marginal there.
|
|
|
|
PASSWORD_HASHERS = (
|
|
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
|
|
)
|