2017-10-12 20:36:44 +03:00
|
|
|
"""
|
2018-03-06 14:28:25 +03:00
|
|
|
With these settings, tests run faster.
|
2017-10-12 20:36:44 +03:00
|
|
|
"""
|
2016-06-23 21:41:44 +03:00
|
|
|
|
2017-01-17 06:38:52 +03:00
|
|
|
from .base import * # noqa
|
2018-03-06 19:56:27 +03:00
|
|
|
from .base import env
|
2016-06-23 21:41:44 +03:00
|
|
|
|
2018-03-06 14:28:25 +03:00
|
|
|
# GENERAL
|
2016-06-23 21:41:44 +03:00
|
|
|
# ------------------------------------------------------------------------------
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
|
2016-06-23 21:41:44 +03:00
|
|
|
DEBUG = False
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
2018-04-09 01:03:29 +03:00
|
|
|
SECRET_KEY = env("DJANGO_SECRET_KEY", default="!!!SET DJANGO_SECRET_KEY!!!")
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#test-runner
|
2018-04-09 01:03:29 +03:00
|
|
|
TEST_RUNNER = "django.test.runner.DiscoverRunner"
|
2016-06-23 21:41:44 +03:00
|
|
|
|
2018-03-06 14:28:25 +03:00
|
|
|
# CACHES
|
2016-06-23 21:41:44 +03:00
|
|
|
# ------------------------------------------------------------------------------
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#caches
|
2016-06-23 21:41:44 +03:00
|
|
|
CACHES = {
|
2018-04-09 01:03:29 +03:00
|
|
|
"default": {
|
|
|
|
"BACKEND": "django.core.cache.backends.locmem.LocMemCache", "LOCATION": ""
|
2016-06-23 21:41:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-06 14:28:25 +03:00
|
|
|
# PASSWORDS
|
2016-06-23 21:41:44 +03:00
|
|
|
# ------------------------------------------------------------------------------
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#password-hashers
|
2018-04-09 01:03:29 +03:00
|
|
|
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
|
2016-06-23 21:41:44 +03:00
|
|
|
|
2018-03-06 14:28:25 +03:00
|
|
|
# TEMPLATES
|
2016-06-23 21:41:44 +03:00
|
|
|
# ------------------------------------------------------------------------------
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#templates
|
2018-04-09 01:03:29 +03:00
|
|
|
TEMPLATES[0]["OPTIONS"]["debug"] = DEBUG # noqa F405
|
|
|
|
TEMPLATES[0]["OPTIONS"]["loaders"] = [ # noqa F405
|
2018-03-06 14:28:25 +03:00
|
|
|
(
|
2018-04-09 01:03:29 +03:00
|
|
|
"django.template.loaders.cached.Loader",
|
2018-03-06 14:28:25 +03:00
|
|
|
[
|
2018-04-09 01:03:29 +03:00
|
|
|
"django.template.loaders.filesystem.Loader",
|
|
|
|
"django.template.loaders.app_directories.Loader",
|
2018-03-06 14:28:25 +03:00
|
|
|
],
|
2018-04-09 01:03:29 +03:00
|
|
|
)
|
2016-06-23 21:41:44 +03:00
|
|
|
]
|
2018-03-06 14:28:25 +03:00
|
|
|
|
|
|
|
# EMAIL
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
|
2018-04-09 01:03:29 +03:00
|
|
|
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-host
|
2018-04-09 01:03:29 +03:00
|
|
|
EMAIL_HOST = "localhost"
|
2018-03-06 14:28:25 +03:00
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-port
|
|
|
|
EMAIL_PORT = 1025
|
|
|
|
|
|
|
|
# Your stuff...
|
|
|
|
# ------------------------------------------------------------------------------
|