You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_settings.py 687B

12345678910111213141516171819
  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. from settings import *
  8. DATABASES = {
  9. 'default': {
  10. 'ENGINE': 'django.db.backends.sqlite3',
  11. 'NAME': ':memory:',
  12. 'USER': '', # Not used with sqlite3.
  13. 'PASSWORD': '', # Not used with sqlite3.
  14. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
  15. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  16. }
  17. }