- Language: en
23 results for object in version 5.1
-
How to create custom model fields
- … object with your models. Our example object Creating custom fields requires a bit of attention …
-
How to deploy with ASGI
- … object Like WSGI, ASGI has you supply an application callable which the application server uses …
-
How to deploy with WSGI
- … object The key concept of deploying with WSGI is the application callable which the application …
-
How to create custom django-admin commands
- … objects . get ( pk = poll_id ) except Poll . DoesNotExist : raise CommandError ( 'Poll " %s " does …
-
How to create custom template tags and filters
- … object back into a normal str object and, rather than try to catch them all, which …
-
How to create database migrations
- … objects . bulk_create ( NewModel ( new_attribute = old_object . old_attribute ) for old_object in OldModel …
-
How to create CSV output
- … objects, and Django’s HttpResponse objects are file-like objects. Here’s an example: import …
-
How to write custom lookups
- … object, called compiler , and the active database connection. SQLCompiler objects are not documented, but the only …
-
How to create PDF files
- … objects, and Django’s FileResponse objects accept file-like objects. Here’s a “Hello World …
-
How to manage error reporting
- … objects. For example: import re IGNORABLE_404_URLS = [ re . compile ( r "\.(php|cgi)$" ), re . compile …