Comments (8)
What about integrating the werkzeug debugger itself? This feature was there previously in APIStar.
from starlette.
I’d be happy to take ideas from the Django and Werkzeug implementations. Werkzeug’s debugger is WSGI-based, so a clean port of it would need some adapting.
I’d suggest approaching this iteratively, let’s start with a bit more info and some basic styling, then work on things from there.
from starlette.
@supriyo-biswas i tried to integrate werkzeug. It's simple hack and should work without problems. Package is published on pypi - starlette-werkzeug-debugger and it's implemented as middleware.
from starlette.
In the case that not include werkzeug
like suggest @supriyo-biswas and we go for our template. Shall we include some styling as well? I have a basic template
that include locals
but without any styling. Maybe some minor js
interaction as well.
from starlette.
Ok, perfect!
from starlette.
Related to #179
from starlette.
I guess the local variables are still missing, correct?
from starlette.
Closing as per #1386
from starlette.
Related Issues (20)
- `RuntimeError("No response returned")` in `BaseHTTPMiddleware` HOT 11
- Incompatibility with anyio v3
- TestClient DeprecationWarning with httpx 0.27.0 HOT 5
- Bug: `_TemplateResponse` is still relying on `request` key from `context` which maybe different from `request` argument to `TemplateResponse`. HOT 4
- How to change the value of request body?
- A `RuntimeError: Stream consumed` error is raised when `request.body()` is read in the custom middleware
- CORSMiddleware always add access-control-allow-credentials regardless of Origin
- ValueError when null byte in URL HOT 2
- responses.py - appears UTF incompatible (Line 58 and probably other places)
- Double path unquote inside _TestClientTransport.__init__ method
- [FeatureRequest] Cant configure request.stream() chunk size -- always 128kb per chunk read HOT 1
- 0.35.0 refactor of root_path handling is potentially returning incorrect route
- pathsend causing issues with BaseHTTPMiddleware
- Python 3.13.0b2: KeyError: 'content-type' in `test_debug_html[asyncio]` and `test_debug_html[trio]`
- Python 3.13.0b2: `test_gzip_ignored_for_responses_with_encoding_set[trio]` fails with a `ValueError: I/O operation on closed file` HOT 3
- [Websockets] RuntimeError: Cannot call "receive" once a disconnect message has been received. HOT 4
- middleware causes exceptions to not be raised/handled silently (back again) HOT 3
- xlsx file open error
- static: is a file not a directory HOT 2
- Python 3.13.0b3: AttributeError: 'functools.partial' object has no attribute '__name__' HOT 1
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 starlette.