-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpupa_settings.py
57 lines (48 loc) · 1.67 KB
/
pupa_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import logging
import os
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
sentry_logging = LoggingIntegration(level=logging.INFO, event_level=logging.FATAL)
sentry_sdk.init(
dsn="https://78df3855dad0415e99c3c327ea9f8126:a04d4bfe629a421aa2703a68e71f27dd@o13877.ingest.sentry.io/4504447849201664",
integrations=[DjangoIntegration(), sentry_logging],
environment=os.getenv("SENTRY_ENVIRONMENT", "dev"),
)
CACHE_DIR = "/tmp/cache/_cache"
SCRAPED_DATA_DIR = "/tmp/cache/_data"
STATIC_ROOT = "/tmp"
DATABASE_URL = os.environ.get(
"DATABASE_URL", "postgis://opencivicdata:@localhost/opencivicdata"
)
INSTALLED_APPS = (
"django.contrib.contenttypes",
"opencivicdata.core.apps.BaseConfig",
"opencivicdata.legislative.apps.BaseConfig",
"councilmatic_core",
"pupa",
)
OCD_CITY_COUNCIL_NAME = None
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"standard": {
"format": "%(asctime)s %(levelname)s %(name)s: %(message)s",
"datefmt": "%m/%d/%Y %H:%M:%S",
}
},
"handlers": {
"default": {
"level": "INFO",
"class": "pupa.ext.ansistrm.ColorizingStreamHandler",
"formatter": "standard",
},
},
"loggers": {
"": {"handlers": ["default"], "level": "DEBUG", "propagate": True},
"scrapelib": {"handlers": ["default"], "level": "INFO", "propagate": False},
"requests": {"handlers": ["default"], "level": "WARN", "propagate": False},
"boto": {"handlers": ["default"], "level": "WARN", "propagate": False},
},
}