Re: DATABASES setting for async usage

2022-01-31 Thread Andrew Wang
Hi Andrew, > > I'm afraid I don't know much about async, but I can point you at some > recent changes. Andrew Godwin created a PR with the draft of the async ORM > API. Carlton recently asked for tests: > https://twitter.com/carltongibson/status/1486281689265545221 . Perh

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 ofte

Re: Generate JWTs with Django

2021-01-19 Thread Andrew Wang
Carlton Gibson wrote: > Hi Andrew, > > 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, > > C

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 foun

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 Django

Re: Async Caching

2020-09-27 Thread Andrew Wang
that forum? >> > > 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, >&

Re: Async Caching

2020-09-26 Thread Andrew Wang
ult, so built-in cache backends won't need to > 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 usin

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 and