We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3581e1 commit 1733120Copy full SHA for 1733120
src/template/main.py
@@ -12,13 +12,14 @@
12
# pylint: disable=wrong-import-position
13
import uvicorn
14
15
- import template.settings.uvicorn_settings
+ # pylint: disable=ungrouped-imports
16
+ from template.settings.uvicorn_settings import UvicornSettings
17
- settings = template.UvicornSettings()
18
+ settings = UvicornSettings()
19
20
uvicorn.run(
21
"template.main:app",
- host=settings.HOST,
22
+ host=str(settings.HOST),
23
port=settings.PORT,
24
log_level=settings.LOG_LEVEL,
25
reload=settings.RELOAD,
0 commit comments