67 lines
No EOL
1.4 KiB
Python
67 lines
No EOL
1.4 KiB
Python
"""Development settings and globals."""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import sentry_sdk
|
|
from sentry_sdk.integrations.django import DjangoIntegration
|
|
from sentry_sdk.integrations.redis import RedisIntegration
|
|
|
|
|
|
from .common import * # noqa
|
|
|
|
DEBUG = True
|
|
|
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
|
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
|
"NAME": "plane",
|
|
"USER": "",
|
|
"PASSWORD": "",
|
|
"HOST": "",
|
|
}
|
|
}
|
|
|
|
|
|
CACHES = {
|
|
"default": {
|
|
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
|
|
}
|
|
}
|
|
|
|
INSTALLED_APPS += ("debug_toolbar",)
|
|
|
|
MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",)
|
|
|
|
DEBUG_TOOLBAR_PATCH_SETTINGS = False
|
|
|
|
INTERNAL_IPS = ("127.0.0.1",)
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True
|
|
|
|
sentry_sdk.init(
|
|
dsn=os.environ.get("SENTRY_DSN"),
|
|
integrations=[DjangoIntegration(), RedisIntegration()],
|
|
# If you wish to associate users to errors (assuming you are using
|
|
# django.contrib.auth) you may enable sending PII data.
|
|
send_default_pii=True,
|
|
environment="local",
|
|
traces_sample_rate=0.7,
|
|
)
|
|
|
|
REDIS_HOST = "localhost"
|
|
REDIS_PORT = 6379
|
|
REDIS_URL = False
|
|
|
|
RQ_QUEUES = {
|
|
"default": {
|
|
"HOST": "localhost",
|
|
"PORT": 6379,
|
|
"DB": 0,
|
|
"DEFAULT_TIMEOUT": 360,
|
|
},
|
|
}
|
|
|
|
WEB_URL = "http://localhost:3000" |