chore: added DEBUG value for docker setup (#1327)
* chore: add DEBUG value for docker setup * refactor: removed the extra DEFAULT value
This commit is contained in:
parent
f2ebac1bb4
commit
0c3635cf25
6 changed files with 17 additions and 3 deletions
|
|
@ -10,7 +10,9 @@ from sentry_sdk.integrations.redis import RedisIntegration
|
|||
|
||||
from .common import * # noqa
|
||||
|
||||
DEBUG = True
|
||||
DEBUG = int(os.environ.get(
|
||||
"DEBUG", 1
|
||||
)) == 1
|
||||
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,10 @@ from sentry_sdk.integrations.redis import RedisIntegration
|
|||
from .common import * # noqa
|
||||
|
||||
# Database
|
||||
DEBUG = False
|
||||
DEBUG = int(os.environ.get(
|
||||
"DEBUG", 0
|
||||
)) == 1
|
||||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@ from sentry_sdk.integrations.redis import RedisIntegration
|
|||
|
||||
from .common import * # noqa
|
||||
# Database
|
||||
DEBUG = True
|
||||
DEBUG = int(os.environ.get(
|
||||
"DEBUG", 1
|
||||
)) == 1
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue