From 2944c46c53f4a5b6e8694aa60c5f16070ba5961e Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Thu, 1 Oct 2020 17:00:29 -0300 Subject: Upgrade Dynaconf to 3+ In dynaconf 3+ it is no more recommended to use `from dynaconf import settings` now the recommendation is to create your own instance of the settings object based on Dynaconf class. --- fatcat_scholar/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/web.py') diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index b465453..58d282d 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -8,9 +8,9 @@ import babel.support from fastapi import FastAPI, APIRouter, Request, Depends, Response from fastapi.staticfiles import StaticFiles from fastapi.responses import PlainTextResponse -from dynaconf import settings from typing import Optional, Any +from fatcat_scholar.config import settings from fatcat_scholar.hacks import Jinja2Templates from fatcat_scholar.search import do_fulltext_search, FulltextQuery, FulltextHits -- cgit v1.2.3