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/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/search.py') diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index d29a720..c15ed93 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -8,7 +8,6 @@ from gettext import gettext from typing import List, Optional, Any import elasticsearch -from dynaconf import settings from elasticsearch_dsl import Search, Q # pytype: disable=import-error @@ -16,6 +15,7 @@ from pydantic import BaseModel # pytype: enable=import-error +from fatcat_scholar.config import settings from fatcat_scholar.identifiers import * # i18n note: the use of gettext below doesn't actually do the translation here, -- cgit v1.2.3