Django 4.2.x Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides How to authenticate using REMOTE_USER Configuration own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with variant (aget() or adelete()), and when you iterate over results, you can use asynchronous iteration (async for) instead. Query iteration The default way of iterating over a query - with for - will result0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides How to authenticate using REMOTE_USER Configuration own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with variant (aget() or adelete()), and when you iterate over results, you can use asynchronous iteration (async for) instead. Query iteration The default way of iterating over a query - with for - will result0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides How to authenticate using REMOTE_USER Configuration own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with handler content', status_code=403) Async views As well as being synchronous functions, views can also be asynchronous (“async”) functions, normally defined using Python’s async def syntax. Django will automatically0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 3.1.x Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides Authentication using REMOTE_USER Configuration Using own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with handler content', status_code=403) Async views As well as being synchronous functions, views can also be asynchronous (“async”) functions, normally defined using Python’s async def syntax. Django will automatically0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django 4.0.x Documentationhandler content', status_code=403) Async views As well as being synchronous functions, views can also be asynchronous (“async”) functions, normally defined using Python’s async def syntax. Django will automatically detect these and run them in an async context. However, you will need to use an async server based on ASGI to get their performance benefits. Here’s an example of an async view: import datetime from django HttpResponse async def current_datetime(request): now = datetime.datetime.now() html = 'It is now %s.' % now return HttpResponse(html) You can read more about Django’s async support0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides Authentication using REMOTE_USER Configuration Using own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with handler content', status_code=403) Async views As well as being synchronous functions, views can also be asynchronous (“async”) functions, normally defined using Python’s async def syntax. Django will automatically0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 3.2.x Documentationhandler content', status_code=403) Async views As well as being synchronous functions, views can also be asynchronous (“async”) functions, normally defined using Python’s async def syntax. Django will automatically detect these and run them in an async context. However, you will need to use an async server based on ASGI to get their performance benefits. Here’s an example of an async view: import datetime from django HttpResponse async def current_datetime(request): now = datetime.datetime.now() html = 'It is now %s.' % now return HttpResponse(html) You can read more about Django’s async support0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 3.1.x DocumentationDocumentation, Release 3.1.15.dev Async views As well as being synchronous functions, views can also be asynchronous (“async”) functions, normally defined using Python’s async def syntax. Django will automatically detect these and run them in an async context. However, you will need to use an async server based on ASGI to get their performance benefits. Here’s an example of an async view: import datetime from django HttpResponse async def current_datetime(request): now = datetime.datetime.now() html = 'It is now %s.' % now return HttpResponse(html) You can read more about Django’s async support0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 5.1 Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides How to authenticate using REMOTE_USER Configuration own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with variant (aget() or adelete()), and when you iterate over results, you can use asynchronous iteration (async for) instead. Query iteration The default way of iterating over a query - with for - will result0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1.2 Documentationown checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides How to authenticate using REMOTE_USER Configuration own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install Django This document will get you up and running with variant (aget() or adelete()), and when you iterate over results, you can use asynchronous iteration (async for) instead. Query iteration The default way of iterating over a query - with for - will result0 码力 | 3519 页 | 3.17 MB | 1 年前3
共 73 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













