- Language: en
17 results for object in version 2.2
-
Writing custom model fields
- … object with your models. Our example object Creating custom fields requires a bit of attention …
-
How to deploy with WSGI
- … object The key concept of deploying with WSGI is the application callable which the application …
-
Writing custom django-admin commands
- … objects . get ( pk = poll_id ) except Poll . DoesNotExist : raise CommandError ( 'Poll " %s " does …
-
Custom template tags and filters
- … object back into a normal str object and, rather than try to catch them all, which …
-
Writing database migrations
- … objects . bulk_create ( NewModel ( new_attribute = old_object . old_attribute ) for old_object in OldModel …
-
Outputting CSV with Django
- … objects, and Django’s HttpResponse objects are file-like objects. Here’s an example: import …
-
Custom Lookups
- … object, called compiler , and the active database connection. SQLCompiler objects are not documented, but the only …
-
Outputting PDFs with Django
- … objects, and Django’s FileResponse objects accept file-like objects. Here’s a “Hello World …
-
Upgrading Django to a newer version
- … objects as these objects are not guaranteed to be pickle-compatible across Django versions. A past …
-
Error reporting
- … objects. For example: import re IGNORABLE_404_URLS = [ re . compile ( r '\.(php|cgi)$' ), re . compile …