Comments (1)
Can you provide an MCVE of your project structure? You can see how Litestar discovers things in https://docs.litestar.dev/latest/usage/cli.html#autodiscovery, and you error indicates those criteria are not met.
If it is not in your current directory, or discoverable otherwise as listed in the documentation, you have to provide the path via something like:
litestar --app-dir "/Users/jacob/Library/Application Support/JetBrains/PyCharm2023.3/scratches/" run
or
litestar --app module.path.to.examples.basic:app run
from litestar.
Related Issues (20)
- Bug: `request.session` may be Empty but it typed as `dict[str, Any]` HOT 5
- Enhancement: Allow streaming Templates to serve very large content
- Bug: Using DTOData with the codegen backend decodes data incorrectly HOT 3
- Enhancement: Support attrs converters HOT 1
- bug: inconsistent behavior between `signature_namespace` and `signature_types` HOT 2
- Enhancement: need a way to update csrf token if secret changed HOT 2
- Enhancement: no way to disable csrf and session middleware on some router HOT 3
- Bug: can't reload app on windows HOT 2
- Bug: `Request.url.scheme` doesn't match `scope['scheme']` HOT 3
- Bug: OpenAPI Generation Errors Out with Pydantic V1 and max_length with default=None HOT 1
- Bug: "type" keyword doesn't behave the same as TypeAlias HOT 2
- Enhancement: allow_unauthorized
- Bug: Pydantic `json_schema_extra` fields aren't all merged
- Bug: Request has no attribute 'htmx' HOT 1
- Enhancement: Generate OpenAPI parameter descriptions from handler docstrings HOT 2
- Enhancement: Switch to official msgpack media type HOT 1
- Enhancement: Accept arbitrary media types in `ResponseSpec.media_type` HOT 2
- Enhancement: after_startup and after_shutdown hook HOT 2
- Bug: Validation error for missing parameter causes ` RuntimeWarning: coroutine 'json_extractor' was never awaited` when body is also requested HOT 3
- Bug: NameError: name 'BigInteger' is not defined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litestar.