mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 05:32:08 +00:00
35 lines
757 B
Python
35 lines
757 B
Python
import logging
|
|
from .settings import * # noqa
|
|
|
|
|
|
# Disable migrations for all-the-things
|
|
class DisableMigrations(object):
|
|
def __contains__(self, item):
|
|
return True
|
|
|
|
def __getitem__(self, item):
|
|
return None
|
|
|
|
|
|
# Disable our logging
|
|
logging.disable(logging.CRITICAL)
|
|
|
|
CELERY_TASK_ALWAYS_EAGER = True
|
|
|
|
DEBUG = False
|
|
|
|
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
|
|
|
|
MIGRATION_MODULES = DisableMigrations()
|
|
|
|
# User a faster password hasher
|
|
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
|
|
|
|
GITHUB_TOKEN = "changeme"
|
|
|
|
# Make content relative to the project root
|
|
BASE_CONTENT = BASE_DIR / "core/tests/content"
|
|
|
|
# Don't use S3 in tests
|
|
DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSystemStorage"
|