mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-30 05:24:01 +03:00
17fa459dc3
* Fix inconsistent line length and move config to pyproject.toml Fix #2720 * Fix running tox with AUTOFIXABLE_STYLES * Adjust some styles * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adjust more styles * Split isort and flake8 tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
"""
|
|
With these settings, tests run faster.
|
|
"""
|
|
|
|
from .base import * # noqa
|
|
from .base import env
|
|
|
|
# GENERAL
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
|
SECRET_KEY = env(
|
|
"DJANGO_SECRET_KEY",
|
|
default="!!!SET DJANGO_SECRET_KEY!!!",
|
|
)
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#test-runner
|
|
TEST_RUNNER = "django.test.runner.DiscoverRunner"
|
|
|
|
# PASSWORDS
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#password-hashers
|
|
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
|
|
|
|
# EMAIL
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
|
|
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
|
|
|
|
# DEBUGGING FOR TEMPLATES
|
|
# ------------------------------------------------------------------------------
|
|
TEMPLATES[0]["OPTIONS"]["debug"] = True # type: ignore # noqa: F405
|
|
|
|
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
|
|
# django-webpack-loader
|
|
# ------------------------------------------------------------------------------
|
|
WEBPACK_LOADER["DEFAULT"]["LOADER_CLASS"] = "webpack_loader.loader.FakeWebpackLoader" # noqa: F405
|
|
|
|
{%- endif %}
|
|
# Your stuff...
|
|
# ------------------------------------------------------------------------------
|