yzongyue
yzongyue
try `m.l = 'a'`
i understand now... try: > class M(models.Model): l = types.compound.ListType(types.StringType(choices=['a', 'b']))
rpc 失败很正常; 比如网络问题,被调用方服务异常,不同系统间状态不一致什么的
I'm more inclined to re-implement `resolvePosix` in uri.zig to avoid process `path` multi times (don't mind me)
when calling the `update profile` endpoint, csrf_token should be included in request body
> > when calling the `update profile` endpoint, csrf_token should be included in request body > > I'm a beginner. Could you please elaborate on how to include CSRF in...
This is example code that works; django-ninja use [https://github.com/django/django/blob/main/django/middleware/csrf.py#L349](url) check csrf ``` import requests """ python manage.py migrate python manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_superuser('[email protected]', 'adminadmin', 'adminadmin')" """...
`ensure_csrf_cookie ` may not required or just put it before `@router.get`, my test code: ``` @ensure_csrf_cookie @api.get( "/pingpong", summary="Ping pong!", auth=None, ) def ping(request): return {"ping": "pong!"} @api.post( "/postpingpong", summary="Ping...
我看了下 2020 版本的 6.824 就没有 part 2D, 应该是 2021 才新加的
我在 mac 下试了可以的 ``` ➜ main git:(yzy) ✗ uname -a Darwin localhost 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64 ➜ main git:(yzy) ✗ sh...