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': {
|
2015-02-06 19:58:02 +08:00
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
2010-02-24 04:45:50 +08:00
|
|
|
},
|
|
|
|
'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
|
|
|
]
|
2020-07-12 20:59:57 +08:00
|
|
|
|
|
|
|
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
2021-05-14 21:58:45 +08:00
|
|
|
|
|
|
|
USE_TZ = False
|