test_sqlite.py 1005 B

1234567891011121314151617181920212223242526272829
  1. # This is an example test settings file for use with the Django test suite.
  2. #
  3. # The 'sqlite3' backend requires only the ENGINE setting (an in-
  4. # memory database will be used). All other backends will require a
  5. # NAME and potentially authentication information. See the
  6. # following section in the docs for more information:
  7. #
  8. # https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
  9. #
  10. # The different databases that Django supports behave differently in certain
  11. # situations, so it is recommended to run the test suite against as many
  12. # database backends as possible. You may want to create a separate settings
  13. # file for each of the backends you test against.
  14. DATABASES = {
  15. 'default': {
  16. 'ENGINE': 'django.db.backends.sqlite3'
  17. },
  18. 'other': {
  19. 'ENGINE': 'django.db.backends.sqlite3',
  20. }
  21. }
  22. SECRET_KEY = "django_tests_secret_key"
  23. # Use a fast hasher to speed up tests.
  24. PASSWORD_HASHERS = (
  25. 'django.contrib.auth.hashers.MD5PasswordHasher',
  26. )