✨ Use Pydantic BaseSettings for config settings (#87)
* Use Pydantic BaseSettings for config settings * Update fastapi dep to >=0.47.0 and email_validator to email-validator * Fix deprecation warning for Pydantic >=1.0 * Properly support old-format comma separated strings for BACKEND_CORS_ORIGINS Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from raven import Client
|
||||
|
||||
from app.core import config
|
||||
from app.core.config import settings
|
||||
from app.core.celery_app import celery_app
|
||||
|
||||
client_sentry = Client(config.SENTRY_DSN)
|
||||
client_sentry = Client(settings.SENTRY_DSN)
|
||||
|
||||
|
||||
@celery_app.task(acks_late=True)
|
||||
|
Reference in New Issue
Block a user