Closed konsilanto closed 1 year ago
I think we just need to reword the section about the application object. Placing that in a main.py
file is not really a convention we promote anywhere else, and as such is not honored by the CLI as well.
Nevertheless, I intended to extend the autodiscovery's "best match" functionality in such a way that it would pick up an app in a file of any name within the current working directory, should it not find an app in one of the canonical paths.
I'll open an issue to track this.
Ok, thanks! Then we could close this particular issue.
Application object mentions that the instance of
Starlite
is typically placed inside a file calledmain.py
. TheCLI
Autodiscovery is only searching forapp.py
,application.py
,asgi.py
, andapp/__init__.py
. MaybeCLI
or the documentation could be changed to be more clearer/consistent.