Re: DATABASES setting for async usage

2022-01-31 Thread Andrew Wang
recently asked for tests: > https://twitter.com/carltongibson/status/1486281689265545221 . Perhaps > check out those PR's and see if you can contribute further? > > Adam > > On Sat, Jan 29, 2022 at 1:42 AM Andrew Wang wrote: > >> Hi, I'm intrigued in helping develop th

DATABASES setting for async usage

2022-01-28 Thread Andrew Wang
Hi, I'm intrigued in helping develop the async ORM engines (link to random PR with aiosqlite and base async engine). The biggest road block is having test cases for async engines only; for instance, introspection/test_async.py can't run because the

Current Development of async ORM?

2021-12-30 Thread Andrew Wang
Happy new year y'all! I'm wondering if anyone else has a fork that started to chip away at an async ORM and advice for how it's going so far. For instance, where did you start? For me, I started with implementing an aiosqlite backend, moving on to RawQuery and Query, then SQLCompiler. How

Re: Generate JWTs with Django

2021-01-19 Thread Andrew Wang
rew, > > Thanks for updating — that's really interesting to look at. I think a few > more examples like this around the community would be handy to break the > "Must use JWT" presumption that I think there is. > > Kind Regards, > > Carlton > > > On Saturday, 16 Ja

Re: Generate JWTs with Django

2021-01-16 Thread Andrew Wang
Hi all, I know this is an old thread, but I have a solution for SPAs using httpOnly session cookies. Here is a demo with React and Django WITHOUT JWTs with httpOnly cookies for session and csrf: https://acwpython.pythonanywhere.com/authenticated/. The tutorial and open source repository is

Async Django Cache - Redis Complete

2020-10-06 Thread Andrew Wang
Hi all, 1.5 weeks ago, I posted that I was interested in making Django's cache async. Just here to report that the package for django-async-redis is on pypi and the repo is here: https://github.com/Andrew-Chen-Wang/django-async-redis. Please test it out. I have only tested it on a local

Re: Async Caching

2020-09-27 Thread Andrew Wang
; Essentially both are equivalent. I think there remain more readers on the > mailing list though, which can help if you're discussing bigger picture > things. > > On Sun, 27 Sep 2020 at 04:30, Andrew Wang wrote: > >> Hey Adam and Andrew, >> >> I can definitely make

Re: Async Caching

2020-09-26 Thread Andrew Wang
> all be converted (at once?). > > I think a good start would be making your aioredis-based backend in a > third party package, using the future naming scheme `*_async`. It could be > informative to have a working backend using this interface, and if you > encounter any e

Async Caching

2020-09-26 Thread Andrew Wang
Hey guys, I'd like to contribute to the effort to make Django more async capable. I've started to write an aioredis based cache backend based on django-redis, but I noticed the BaseCache in Django is still all synchronous basically. I was wondering which backends I should make async capable