per page, with , order by , clip by
Results of 1 - 10 of about 47 for handle (0.003 sec.)
カスタム django-admin コマンドの作り方 15535
カスタム django-admin コマンドの作り方 manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリケーションに manage.py アクションを追加したくなったとします。このドキュメントでは、 このチュー ... poll for voting" def add_arguments ( self , parser ): parser . add_argument ( "poll_ids" , nargs = "+" , type = int ) def handle ( self , * args , ** options ): for poll_id in options [ "poll_ids" ]: try : poll = Poll . objects . get ( pk = poll_id ) ... line" , ending = "" ) 新たに作成したカスタムコマンドは python manage.py closepoll <poll_ids> と実行する事で利用できます。 handle() メソッドは一つ以上の poll_ids を受け取り、それぞれに対応した poll.opened を False にセットします。もしコマンドの利用者が ... arguments parser . add_argument ( "--delete" , action = "store_true" , help = "Delete poll instead of closing it" , ) def handle ( self , * args , ** options ): # ... if options [ "delete" ]: poll . delete () # ... The option ( delete in our example) ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
Django 1.4.13 リリースノート 10063
Django 1.4.13 リリースノート May 14, 2014 Django 1.4.13 fixes two security issues in 1.4.12. Caches may incorrectly be allowed to store and serve private data In certain situations, Django may allow caches to store private data related to a ... (most likely only Internet Explorer 6, and Internet Explorer 7 if run on Windows XP or Windows Server 2003) are unable to handle the Vary header in combination with many content types. Therefore, Django would remove the header if the request was made ... e browsers with more liberal URL parsing. To remedy this, the validation in is_safe_url() has been tightened to be able to handle and correctly validate these malformed URLs. ...
https://man.mtool.work/django/6.1/releases/1.4.13.html
Django 1.5.8 リリースノート 10063
Django 1.5.8 リリースノート May 14, 2014 Django 1.5.8 fixes two security issues in 1.5.8. Caches may incorrectly be allowed to store and serve private data In certain situations, Django may allow caches to store private data related to a pa ... (most likely only Internet Explorer 6, and Internet Explorer 7 if run on Windows XP or Windows Server 2003) are unable to handle the Vary header in combination with many content types. Therefore, Django would remove the header if the request was made ... e browsers with more liberal URL parsing. To remedy this, the validation in is_safe_url() has been tightened to be able to handle and correctly validate these malformed URLs. ...
https://man.mtool.work/django/6.1/releases/1.5.8.html
Django 1.6.5 リリースノート 9713
Django 1.6.5 リリースノート May 14, 2014 Django 1.6.5 fixes two security issues and several bugs in 1.6.4. Issue: Caches may incorrectly be allowed to store and serve private data In certain situations, Django may allow caches to store priv ... (most likely only Internet Explorer 6, and Internet Explorer 7 if run on Windows XP or Windows Server 2003) are unable to handle the Vary header in combination with many content types. Therefore, Django would remove the header if the request was made ... e browsers with more liberal URL parsing. To remedy this, the validation in is_safe_url() has been tightened to be able to handle and correctly validate these malformed URLs. バグ修正 Made the year_lookup_bounds_for_datetime_field Oracle backend method ...
https://man.mtool.work/django/6.1/releases/1.6.5.html
ファイルのアップロード 9530
ファイルのアップロード Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト/レスポンス オブジェクト を参照してください)。ここでは、ファイルがどのようにディスクとメモリに ... import HttpResponseRedirect from django.shortcuts import render from .forms import UploadFileForm # Imaginary function to handle an uploaded file. from somewhere import handle_uploaded_file def upload_file ( request ): if request . method == "POST" : ... form = UploadFileForm ( request . POST , request . FILES ) if form . is_valid (): handle_uploaded_file ( request . FILES [ "file" ]) return HttpResponseRedirect ( "/success/url/" ) else : form = UploadFileForm ( ... タに渡す必要があることに注意してください。 アップロードされたファイルをハンドルする一般的な方法は、次のようになります。 def handle_uploaded_file ( f ): with open ( "some/file/name.txt" , "wb+" ) as destination : for chunk in f . chunks (): destination . ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
Django 2.2.12 リリースノート 9348
Django 2.2.12 リリースノート April 1, 2020 Django 2.2.12 fixes a bug in 2.2.11. バグ修正 Added the ability to handle .po files containing different plural equations for the same language ( #30439 ). ...
https://man.mtool.work/django/6.1/releases/2.2.12.html
Django 3.0.5 リリースノート 8998
Django 3.0.5 リリースノート April 1, 2020 Django 3.0.5 では、3.0.4 におけるいくつかのバグを修正しました。 バグ修正 Added the ability to handle .po files containing different plural equations for the same language ( #30439 ). Fixed a regress ...
https://man.mtool.work/django/6.1/releases/3.0.5.html
Django 1.0 リリースノート 8117
Django 1.0 リリースノート Django 1.0 へようこそ! We've been looking forward to this moment for over three years, and it's finally here. Django 1.0 represents the largest milestone in Django's development to date: a web framework that a grou ... utility functions have been provided to ease interoperability with third-party libraries and systems which may or may not handle Unicode gracefully. Details are available in Django's Unicode-handling documentation. 詳しくは Unicode データ を参照。 改善 ... still exists and retains all of its previous functionality, but it is now built from two separate middleware classes which handle the two parts of caching (inserting into and reading from the cache) separately, offering additional flexibility for situa ...
https://man.mtool.work/django/6.1/releases/1.0.html
組み込みのビュー 7934
組み込みのビュー Django の組み込みビューのいくつかは、 ビューを記述する や他のドキュメントで説明されています。 開発中のファイルの配信 static. serve ( request , path , document_root , show_indexes = False ) プロジェクトの静的アセット以外にも ... request)ビュー defaults. bad_request ( request , exception , template_name = '400.html' ) Similarly, Django has a view to handle 400 Bad Request errors. このビューは "Bad Request" メッセージを生成するか、ルートテンプレートディレクトリに作成された 400. ... faults.bad_request is triggered by a BadRequest exception. Also, when a SuspiciousOperation is raised in Django, it may be handled by a component of Django (for example resetting the session data). If not specifically handled, Django will consider the ... current request a 'bad request' instead of a server error, and handle it with bad_request . また、 bad_request ビューは DEBUG が False のときだけ使用されます。 ...
https://man.mtool.work/django/6.1/ref/views.html
Porting your apps from Django 0.96 to 1.0 7934
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... rgument from your model fields. It is no longer necessary, since the equivalent functionality (part of inline editing ) is handled differently by the admin interface now. You don't have to worry about inline editing until you get to the admin section, ... as django.forms and django.oldforms ), you'll have to rewrite your forms. A good place to start is the forms documentation Handle uploaded files using the new API Replace use of uploaded files -- that is, entries in request.FILES -- as simple dictionar ... bly worth reading through the list and checking your code for these things. シグナル Add **kwargs to any registered signal handlers. Connect, disconnect, and send signals via methods on the Signal object instead of through module methods in django.disp ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
PREV 1 2 3 4 5 NEXT