您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

test_settings.py 724B

12345678910111213141516171819202122
  1. """
  2. Special settings file for use when testing. This specifies a SQLite
  3. database to use when running tests.
  4. Just make sure you run the tests and specify this file:
  5. > ./manage.py test -settings=test_settings
  6. """
  7. import sys
  8. sys.path.append("../..")
  9. from settings import *
  10. DATABASES = {
  11. 'default': {
  12. 'ENGINE': 'django.db.backends.sqlite3',
  13. 'NAME': ':memory:',
  14. 'USER': '', # Not used with sqlite3.
  15. 'PASSWORD': '', # Not used with sqlite3.
  16. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
  17. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  18. }
  19. }