53 lines
1.6 KiB
Python
53 lines
1.6 KiB
Python
# pylint: disable=unused-wildcard-import,wildcard-import,wrong-import-position
|
|
import getpass
|
|
import os
|
|
|
|
from .base import * # noqa
|
|
from .base import env
|
|
|
|
# GENERAL
|
|
# ------------------------------------------------------------------------------
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
|
SECRET_KEY = env(
|
|
"IT_DJANGO_SECRET_KEY",
|
|
default="1NpUCSvAKLpDZL9e3tqDaUe8Kk2xAuF1tXosFjBanc4lFCgNcfBp02MD3UjB72ZS",
|
|
)
|
|
# 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"
|
|
|
|
|
|
class DisableMigrations(dict):
|
|
def __contains__(self, item):
|
|
return True
|
|
|
|
def __getitem__(self, item):
|
|
return None
|
|
|
|
|
|
MIGRATION_MODULES = DisableMigrations()
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
|
"NAME": "vbv_lernwelt_test",
|
|
"USER": os.environ.get("PG_USER", getpass.getuser()),
|
|
"PASSWORD": os.environ.get("PG_PASSWORD"),
|
|
"HOST": "localhost",
|
|
"PORT": os.environ.get("PG_PORT", ""),
|
|
}
|
|
}
|
|
|
|
|
|
# Your stuff...
|
|
# ------------------------------------------------------------------------------
|