Results of 21 - 30 of about 189 for return (0.042 sec.)
- django.core.mail.message — Django 4.0.6 ドキュメント 6855
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
() == "subject" : val = Header ( val ) . encode () return name , val def sanitize_address ( addr , encoding ...
Address ( username = localpart , domain = domain ) return formataddr (( nm , parsed_address . addr_spec )) c ...
( self , unixfrom = False , linesep = " \n " ): """Return the entire formatted message as a string. Optional ...
( self , unixfrom = unixfrom , linesep = linesep ) return fp . getvalue () def as_bytes ( self , unixfrom = ...
-
https://man.plustar.jp/django/_modules/django/core/mail/message.html
- [similar]
- Django の admin サイト — Django 4.0.6 ドキュメント 6855
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
alue = '???' ) def view_birth_date ( self , obj ): return obj . birth_date Changed in Django 3.2: The empty_ ...
escription = 'Name' ) def upper_case_name ( obj ): return ( " %s %s " % ( obj . first_name , obj . last_name ...
ion = 'Name' ) def upper_case_name ( self , obj ): return ( " %s %s " % ( obj . first_name , obj . last_name ...
on = 'Birth decade' ) def decade_born_in ( self ): return ' %d 's' % ( self . birthday . year // 10 * 10 ) c ...
-
https://man.plustar.jp/django/ref/contrib/admin/index.html
- [similar]
- django.contrib.messages.api — Django 4.0.6 ドキュメント 6822
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ib.messages.middleware.MessageMiddleware" ) else : return messages . add ( level , message , extra_tags ) [ド ...
キュメント] def get_messages ( request ): """ Return the message storage on the request if it exists, o ...
therwise return an empty list. """ return getattr ( request , "_me ...
ssages" , []) def get_level ( request ): """ Return the minimum level of messages to be recorded. The ...
-
https://man.plustar.jp/django/_modules/django/contrib/messages/api.html
- [similar]
- How to create custom model fields — Django 4.0.6 ドキュメント 6822
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
er () . deconstruct () del kwargs [ "max_length" ] return name , path , args , kwargs 新しいキーワード引数を ...
!= "," : kwargs [ 'separator' ] = self . separator return name , path , args , kwargs More complex examples ...
uration of your Field instance, deconstruct() must return arguments that you can pass to __init__ to reconst ...
n the old default value. In addition, try to avoid returning values as positional arguments; where possible, ...
-
https://man.plustar.jp/django/howto/custom-model-fields.html
- [similar]
- django.core.files.images — Django 4.0.6 ドキュメント 6789
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ing with images. """ @property def width ( self ): return self . _get_image_dimensions ()[ 0 ] @property def ...
height ( self ): return self . _get_image_dimensions ()[ 1 ] def _get_imag ...
he = get_image_dimensions ( self , close = close ) return self . _dimensions_cache def get_image_dimensions ...
( file_or_path , close = False ): """ Return the (width, height) of an image, given an open fil ...
-
https://man.plustar.jp/django/_modules/django/core/files/images.html
- [similar]
- asgiref.sync — Django 4.0.6 ドキュメント 6570
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
from CPython. if sys . version_info >= ( 3 , 8 ): return asyncio . iscoroutinefunction ( func ) else : whil ...
( func , functools . partial ): func = func . func return asyncio . iscoroutinefunction ( func ) class Threa ...
cToAsync . thread_sensitive_context . set ( self ) return self async def __aexit__ ( self , exc , value , tb ...
): if not self . token : return executor = SyncToAsync . context_to_thread_executo ...
-
https://man.plustar.jp/django/_modules/asgiref/sync.html
- [similar]
- マネージャ — Django 4.0.6 ドキュメント 6538
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
er ( models . Manager ): def with_counts ( self ): return self . annotate ( num_responses = Coalesce ( model ...
す QuerySet を修正する ¶ A Manager 's base QuerySet returns all objects in the system. For example, using thi ...
r ( models . Manager ): def get_queryset ( self ): return super () . get_queryset () . filter ( author = 'Ro ...
の書いた本だけを返しま す。 Because get_queryset() returns a QuerySet object, you can use filter() , exclude ...
-
https://man.plustar.jp/django/topics/db/managers.html
- [similar]
- django.core.files.uploadhandler — Django 4.0.6 ドキュメント 6472
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
def __str__ ( self ): if self . connection_reset : return "StopUpload: Halt current upload." else : return " ...
lers to run should raise this exception instead of returning None. """ pass [ドキュメント] class FileUploadH ...
e accumulated by all the chunks. Subclasses should return a valid ``UploadedFile`` object. """ raise NotImpl ...
. file . seek ( 0 ) self . file . size = file_size return self . file def upload_interrupted ( self ): if ha ...
-
https://man.plustar.jp/django/_modules/django/core/files/uploadhandler.html
- [similar]
- django.utils.module_loading — Django 4.0.6 ドキュメント 6472
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
, False ) is True ): import_module ( module_path ) return getattr ( modules [ module_path ], class_name ) [ド ...
dotted_path ): """ Import a dotted module path and return the attribute/class designated by the last name in ...
like a module path" % dotted_path ) from err try : return cached_import ( module_path , class_name ) except ...
except AttributeError : # package isn't a package. return False full_module_name = package_name + "." + modu ...
-
https://man.plustar.jp/django/_modules/django/utils/module_loading.html
- [similar]
- django.db.transaction — Django 4.0.6 ドキュメント 6439
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
I. """ if using is None : using = DEFAULT_DB_ALIAS return connections [ using ] [ドキュメント] def get_autoc ...
"""Get the autocommit status of the connection.""" return get_connection ( using ) . get_autocommit () [ドキ ...
"""Set the autocommit status of the connection.""" return get_connection ( using ) . set_autocommit ( autoco ...
ed by the backend) inside the current transaction. Return an identifier for the savepoint that will be used ...
-
https://man.plustar.jp/django/_modules/django/db/transaction.html
- [similar]