検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 33 for filename (0.068 sec.)
django.utils.text — Django 4.0.6 ドキュメント 7877
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... rn string return out @keep_lazy_text def get_valid_filename ( name ): """ Return the given string converted to ... a string that can be used for a clean filename. Remove leading and trailing spaces; convert other ... hanumeric, dash, underscore, or dot. >>> get_valid_filename("john's portrait in 2004.jpg") 'johns_portrait_in_ ... raise SuspiciousFileOperation ( "Could not derive file name from ' %s '" % name ) return s @keep_lazy_text de ...
https://man.plustar.jp/django/_modules/django/utils/text.html - [similar]
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 7877
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... be called to obtain the upload path, including the filename. This callable must accept two arguments and retur ... t not yet have a value for its primary key field . filename The filename that was originally given to the file ... ion path. 例: def user_directory_path ( instance , filename ): # file will be uploaded to MEDIA_ROOT/user_<id> ... /<filename> return 'user_ {0} / {1} ' . format ( instance . u ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
Advanced testing topics — Django 4.0.6 ドキュメント 7877
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ): lockfile = __file__ def setUp ( self ): self . filename = os . path . join ( temp_storage_dir , 'my_file.p ... ng' ) self . file = create_file ( self . filename ) class RemoveImageTests ( ImageTestCaseMixin , Te ... f test_remove_image ( self ): os . remove ( self . filename ) self . assertFalse ( os . path . exists ( self . ... filename )) class ResizeImageTests ( ImageTestCaseMixin , T ...
https://man.plustar.jp/django/topics/testing/advanced.html - [similar]
リクエストとレスポンスのオブジェクト — Django 4.0.6 ドキュメント 7684
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... -excel' , ... 'Content-Disposition' : 'attachment; filename="foo.xls"' , ... }) There's nothing Django-specifi ... FileResponse ( open_file , as_attachment = False , filename = '' , ** kwargs ) ¶ FileResponse is a subclass of ... inline (the browser default) will be set only if a filename is available. If open_file doesn't have a name or ... e of open_file isn't appropriate, provide a custom file name using the filename parameter. Note that if you pa ...
https://man.plustar.jp/django/ref/request-response.html - [similar]
Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 7684
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ges: Old (0.96) New (1.0) f['content'] f.read() f['filename'] f.name f['content-type'] f.content_type Work wit ... s that the way you access special attributes (URL, filename, image size, etc.) of these model fields has chang ... d myfile : Old (0.96) New (1.0) myfile.get_content_filename() myfile.content.path myfile.get_content_url() myf ...
https://man.plustar.jp/django/releases/1.0-porting-guide.html - [similar]
メールを送信する — Django 4.0.6 ドキュメント 7684
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ssage. These can be either MIMEBase instances, or (filename, content, mimetype) triples. headers : メッセージに ... . もしくは、 attach() の 3 つの引数を引き渡します: filename 、 content 、 mimetype です。 filename は、メール内 ... MIME type is omitted, it will be guessed from the filename. You can use it like this: message . attach_file ( ...
https://man.plustar.jp/django/topics/email.html - [similar]
Django 1.4.14 release notes — Django 4.0.6 ドキュメント 7492
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... number of os.stat() system calls when a duplicate filename is uploaded. Since stat() may invoke IO, this may ... the issue by changing the algorithm for generating file names if a file with the uploaded name already exists. ...
https://man.plustar.jp/django/releases/1.4.14.html - [similar]
Django 1.5.9 release notes — Django 4.0.6 ドキュメント 7492
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... number of os.stat() system calls when a duplicate filename is uploaded. Since stat() may invoke IO, this may ... the issue by changing the algorithm for generating file names if a file with the uploaded name already exists. ...
https://man.plustar.jp/django/releases/1.5.9.html - [similar]
The staticfiles app — Django 4.0.6 ドキュメント 7379
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ects the static files into STATIC_ROOT . Duplicate file names are by default resolved in a similar way to how ... taticFilesStorage storage backend which stores the file names it handles by appending the MD5 hash of the file ... 's content to the filename. For example, the file css/styles.css would also b ... me of a file. Needs to return a hash for the given file name and content. By default it calculates a MD5 hash ...
https://man.plustar.jp/django/ref/contrib/staticfiles.html - [similar]
Form fields — Django 4.0.6 ドキュメント 7379
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ow_empty_file . If provided, these ensure that the file name is at most the given length, and that validation ... 。 The max_length error refers to the length of the filename. In the error message for that key, %(max)d will b ... e replaced with the maximum filename length and %(length)d will be replaced with the cu ... rrent filename length. FilePathField ¶ class FilePathField ( ** k ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
PREV 1 2 3 4 NEXT