mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 16:24:14 +03:00
9cb7e50b8e
* Convert old-styled string formatting to f-string * Update flake8 explicit version to 3.5.0 * Make tox.ini in sync with requirements.txt * Fix annoying flake8 F405
59 lines
2.0 KiB
Python
59 lines
2.0 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/#debug
|
|
DEBUG = False
|
|
# 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'
|
|
|
|
# CACHES
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#caches
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
'LOCATION': ''
|
|
}
|
|
}
|
|
|
|
# PASSWORDS
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#password-hashers
|
|
PASSWORD_HASHERS = [
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
]
|
|
|
|
# TEMPLATES
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#templates
|
|
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # noqa F405
|
|
TEMPLATES[0]['OPTIONS']['loaders'] = [ # noqa F405
|
|
(
|
|
'django.template.loaders.cached.Loader',
|
|
[
|
|
'django.template.loaders.filesystem.Loader',
|
|
'django.template.loaders.app_directories.Loader',
|
|
],
|
|
),
|
|
]
|
|
|
|
# EMAIL
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
|
|
EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend'
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-host
|
|
EMAIL_HOST = 'localhost'
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#email-port
|
|
EMAIL_PORT = 1025
|
|
|
|
# Your stuff...
|
|
# ------------------------------------------------------------------------------
|