2010-02-24 04:45:50 +08: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 22:49:00 +08:00
|
|
|
# https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
|
2010-02-24 04:45:50 +08: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 08:05:13 +08:00
|
|
|
|
|
|
|
SECRET_KEY = "django_tests_secret_key"
|
2013-02-26 17:00:14 +08:00
|
|
|
|
|
|
|
# Use a fast hasher to speed up tests.
|
2015-01-22 00:55:57 +08:00
|
|
|
PASSWORD_HASHERS = [
|
2012-05-01 02:40:02 +08:00
|
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
2015-01-22 00:55:57 +08:00
|
|
|
]
|