<reponame>ayushmankumar7/cc-licenses
# flake8: noqa
import os
import sys

from cc_licenses.settings.base import *  # noqa

DEBUG = True

INSTALLED_APPS += [
    "debug_toolbar",
]
MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",)

INTERNAL_IPS = ("127.0.0.1",)

#: Don't send emails, just print them on stdout
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

#: Run celery tasks synchronously
CELERY_ALWAYS_EAGER = True

#: Tell us when a synchronous celery task fails
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True

SECRET_KEY = os.environ.get(
    "SECRET_KEY", <KEY>"
)

# Special test settings
if "test" in sys.argv:
    PASSWORD_HASHERS = (
        "django.contrib.auth.hashers.SHA1PasswordHasher",
        "django.contrib.auth.hashers.MD5PasswordHasher",
    )

    LOGGING["root"]["handlers"] = []

# Make it obvious if there are unresolved variables in templates
TEMPLATES[0]["OPTIONS"]["string_if_invalid"] = "INVALID_VARIABLE(%s)"

# flake8: noqa
import os
import sys

from cc_licenses.settings.base import *  # noqa

DEBUG = True

INSTALLED_APPS += [
    "debug_toolbar",
]
MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",)

INTERNAL_IPS = ("127.0.0.1",)

#: Don't send emails, just print them on stdout
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

#: Run celery tasks synchronously
CELERY_ALWAYS_EAGER = True

#: Tell us when a synchronous celery task fails
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True

SECRET_KEY = os.environ.get(
    "SECRET_KEY", <KEY>"
)

# Special test settings
if "test" in sys.argv:
    PASSWORD_HASHERS = (
        "django.contrib.auth.hashers.SHA1PasswordHasher",
        "django.contrib.auth.hashers.MD5PasswordHasher",
    )

    LOGGING["root"]["handlers"] = []

# Make it obvious if there are unresolved variables in templates
TEMPLATES[0]["OPTIONS"]["string_if_invalid"] = "INVALID_VARIABLE(%s)"
# flake8: noqa # noqa #: Don't send emails, just print them on stdout #: Run celery tasks synchronously #: Tell us when a synchronous celery task fails # Special test settings # Make it obvious if there are unresolved variables in templates