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/#secret-key
|
2019-03-18 20:49:43 +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
|
|
|
# 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
|
|
|
# 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
|
|
|
|
2023-01-04 18:33:02 +03:00
|
|
|
# DEBUGGING FOR TEMPLATES
|
2022-07-22 02:06:35 +03:00
|
|
|
# ------------------------------------------------------------------------------
|
2023-04-03 16:34:45 +03:00
|
|
|
TEMPLATES[0]["OPTIONS"]["debug"] = True # type: ignore # noqa: F405
|
2022-07-22 02:06:35 +03:00
|
|
|
|
2023-08-28 21:02:09 +03:00
|
|
|
# MEDIA
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
|
|
|
|
MEDIA_URL = 'http://media.testserver'
|
|
|
|
|
2023-02-06 19:16:48 +03:00
|
|
|
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
|
|
|
|
# django-webpack-loader
|
|
|
|
# ------------------------------------------------------------------------------
|
2023-04-15 17:43:04 +03:00
|
|
|
WEBPACK_LOADER["DEFAULT"]["LOADER_CLASS"] = "webpack_loader.loader.FakeWebpackLoader" # noqa: F405
|
2023-02-06 19:16:48 +03:00
|
|
|
|
|
|
|
{%- endif %}
|
2018-03-06 14:28:25 +03:00
|
|
|
# Your stuff...
|
|
|
|
# ------------------------------------------------------------------------------
|