Results of 11 - 20 of about 189 for return (0.035 sec.)
- django.core.signing — Django 4.0.6 ドキュメント 8593
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
$secret" signing.loads(s) checks the signature and returns the deserialized object. If the signature fails, ...
max_age.""" pass def b62_encode ( s ): if s == 0 : return "0" sign = "-" if s < 0 else "" s = abs ( s ) enco ...
encoded = BASE62_ALPHABET [ remainder ] + encoded return sign + encoded def b62_decode ( s ): if s == "0" : ...
return 0 sign = 1 if s [ 0 ] == "-" : s = s [ 1 :] sign = ...
-
https://man.plustar.jp/django/_modules/django/core/signing.html
- [similar]
- django.db.utils — Django 4.0.6 ドキュメント 7861
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e , exc_value , traceback ): if exc_type is None : return for dj_exc_type in ( DataError , OperationalError ...
109. def inner ( * args , ** kwargs ): with self : return func ( * args , ** kwargs ) return inner def load_ ...
backend ( backend_name ): """ Return a database backend's "base" module given a fully q ...
ckend_name = "django.db.backends.postgresql" try : return import_module ( " %s .base" % backend_name ) excep ...
-
https://man.plustar.jp/django/_modules/django/db/utils.html
- [similar]
- django.utils.safestring — Django 4.0.6 ドキュメント 7707
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
wraps class SafeData : def __html__ ( self ): """ Return the html representation of a string for interopera ...
plate engines to understand Django's SafeData. """ return self [ドキュメント] class SafeString ( str , SafeD ...
__add__ ( rhs ) if isinstance ( rhs , SafeData ): return SafeString ( t ) return t def __str__ ( self ): re ...
wraps ( func ) def wrapped ( * args , ** kwargs ): return safety_marker ( func ( * args , ** kwargs )) retur ...
-
https://man.plustar.jp/django/_modules/django/utils/safestring.html
- [similar]
- How to create custom template tags and filters — Django 4.0.6 ドキュメント 7609
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
Removes all values of arg from the given string""" return value . replace ( arg , '' ) そして、以下はフィルタ ...
gument. """Converts a string into all lowercase""" return value . lower () 独自のフィルタを登録する ¶ django ...
. filter ( name = 'cut' ) def cut ( value , arg ): return value . replace ( arg , '' ) @register . filter de ...
f lower ( value ): return value . lower () name 引数を省略した場合、上記の 2 ...
-
https://man.plustar.jp/django/howto/custom-template-tags.html
- [similar]
- django.core.validators — Django 4.0.6 ドキュメント 7576
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
{ "value" : value }) def __eq__ ( self , other ): return ( isinstance ( other , RegexValidator ) and self . ...
de = "invalid" , ) def validate_integer ( value ): return integer_validator ( value ) [ドキュメント] @decons ...
." , RemovedInDjango41Warning , stacklevel = 2 , ) return self . domain_allowlist @domain_whitelist . setter ...
: if self . validate_domain_part ( domain_part ): return raise ValidationError ( self . message , code = se ...
-
https://man.plustar.jp/django/_modules/django/core/validators.html
- [similar]
- django.dispatch.dispatcher — Django 4.0.6 ドキュメント 7237
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
id ( target ): if hasattr ( target , "__func__" ): return ( id ( target . __self__ ), id ( target . __func__ ...
)) return id ( target ) NONE_ID = _make_id ( None ) # A mark ...
x ] break self . sender_receivers_cache . clear () return disconnected def has_listeners ( self , sender = N ...
one ): return bool ( self . _live_receivers ( sender )) [ドキュメ ...
-
https://man.plustar.jp/django/_modules/django/dispatch/dispatcher.html
- [similar]
- django.core.exceptions — Django 4.0.6 ドキュメント 6975
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
failure = True [ドキュメント] class MultipleObjectsReturned ( Exception ): """The query returned multiple ob ...
ave an error_dict. getattr ( self , "error_dict" ) return dict ( self ) @property def messages ( self ): if ...
hasattr ( self , "error_dict" ): return sum ( dict ( self ) . values (), []) return list ( ...
_FIELD_ERRORS , []) . extend ( self . error_list ) return error_dict def __iter__ ( self ): if hasattr ( sel ...
-
https://man.plustar.jp/django/_modules/django/core/exceptions.html
- [similar]
- クラスベースのビューでミックスインを使用する — Django 4.0.6 ドキュメント 6975
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
in there as keyword arguments. get_context_data() returns a dictionary; in ContextMixin it returns its keyw ...
args ): if not request . user . is_authenticated : return HttpResponseForbidden () # Look up the author we'r ...
object () # Actually record interest somehow here! return HttpResponseRedirect ( reverse ( 'author-detail' , ...
ld call get_queryset() which we have overridden to return Book objects instead of Publisher ones. 注釈 We ha ...
-
https://man.plustar.jp/django/topics/class-based-views/mixins.html
- [similar]
- 複数のデータベース — Django 4.0.6 ドキュメント 6942
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
onary. Details on valid hints are provided below . Returns None if there is no suggestion. db_for_write ( mo ...
onary. Details on valid hints are provided below . Returns None if there is no suggestion. allow_relation ( ...
obj1 , obj2 , ** hints ) ¶ Return True if a relation between obj1 and obj2 should be ...
cts. If no router has an opinion (i.e. all routers return None ), only relations within the same database ar ...
-
https://man.plustar.jp/django/topics/db/multi-db.html
- [similar]
- The syndication feed framework — Django 4.0.6 ドキュメント 6920
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tions to police beat central." def items ( self ): return NewsItem . objects . order_by ( '-pub_date' )[: 5 ...
] def item_title ( self , item ): return item . title def item_description ( self , item ): ...
return item . description # item_link is only needed if N ...
bsolute_url method. def item_link ( self , item ): return reverse ( 'news-item' , args = [ item . pk ]) To c ...
-
https://man.plustar.jp/django/ref/contrib/syndication.html
- [similar]