15 lines
466 B
Python
15 lines
466 B
Python
import os
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
class Config:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY')
|
|
SQLALCHEMY_DATABASE_URI = f"postgresql://{os.environ.get('POSTGRES_USER')}:{os.environ.get('POSTGRES_PASSWORD')}@postgres/{os.environ.get('POSTGRES_DB')}"
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
CELERY = dict(
|
|
broker_url="redis://redis/0",
|
|
result_backend="redis://redis/0",
|
|
task_ignore_result=True,
|
|
)
|
|
|