# -*- coding: utf-8 -*-
# type: ignore
# flake8: noqa
from __future__ import annotations

import os

from hotpocket_backend.settings.webapp import *

DEBUG = True
ALLOWED_HOSTS = ['*']

INSTALLED_APPS += [
    'django_extensions',
]

LOGGING['loggers']['hotpocket_backend']['level'] = 'DEBUG'
LOGGING['loggers']['hotpocket_common']['level'] = 'DEBUG'
LOGGING['loggers']['hotpocket_soa']['level'] = 'DEBUG'

CELERY_BEAT_SCHEDULE_FILENAME = 'run/celerybeat-schedule'

UPLOADS_PATH = Path(
    os.environ.get(
        'HOTPOCKET_BACKEND_UPLOADS_PATH',
        os.path.join(os.getcwd(), 'run/uploads'),
    ),
)
