mlavin / aiodjango Goto Github PK
View Code? Open in Web Editor NEWExperiment Mixing Django with aiohttp
License: BSD 2-Clause "Simplified" License
Experiment Mixing Django with aiohttp
License: BSD 2-Clause "Simplified" License
Need to expose ways to customize/extend the aiohttp.web
application which is created such as with additional middleware.
aiohttp.web
does have a default regex router and the current solution is a bit of a hack. It's unlikely to work for more complex cases.
Might what to make the static files automatically served by the async server. Something like whitenoise
built-in. Not sure if sendfile works with aiohttp
.
Probably need to create utilities like the liveserver/test client for testing these additional views.
Like sessions, the coroutine views will also likely want to know about the current user.
The WSGI app may want access to the event loop and/or the aio app.
It's currently a unreadable mess. Nice to get a format closer to the original format. Color would be a nice to have but not really needed.
Not a lot of code in this project yet but still needs to be tested.
The WSGI app shouldn't block the IO loop since it runs in a executor but it would be good to benchmark and test various scenarios such as DB access and generally slow views.
The README is nice but if this is ever going to be more than a proof of concept it needs proper docs.
Probably need a way to configure the executor used to run the WSGI app (CPU vs Theads or # of threads).
Needed if want to test outside of the demo application.
A fully deployed live demo would be nice for both the demo and to monitor usage/performance.
Coroutine views will likely want access to the session and that should be available by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.