per page, with , order by , clip by
Results of 1 - 10 of about 31 for append (0.009 sec.)
ミドルウェア 13087
ミドルウェア このドキュメントでは、Djangoに付属するすべてのミドルウェアコンポーネントについて説明します。それらの使用方法や独自のミドルウェアの作成方法についての情報は、 ミドルウェア使用ガイド を参照してください。 使用できる middleware Cach ... れるユーザーエージェントのアクセスを禁止します。この設定は、コンパイルした正規表現オブジェクトのリストである必要があります。 APPEND_SLASH および PREPEND_WWW 設定に基づいて、URL の書き換えを実行します。 APPEND_SLASH が True で、与えられた URL がスラッシュ ... れらを区別して作成されます。よって、URL を正規化するというのがベストプラクティスなのです。 必要に応じて、個々のビューは、 no_append_slash() デコレータを使用して、 APPEND_SLASH の動作から除外できます。 from django.views.decorators.common import no_append_ ... slash @no_append_slash def sensitive_fbv ( request , * args , ** kwargs ): """View to be excluded from APPEND_SLASH.""" return HttpResponse ...
https://man.mtool.work/django/6.1/ref/middleware.html
Django 1.11.15 リリースノート 11113
Django 1.11.15 リリースノート 2018年8月1日 Django 1.11.15 では、1.11.14 にあった1つのセキュリティの問題を修正しました。 CVE-2018-14574: CommonMiddleware に対するオープンリダイレクトの可能性 If the CommonMiddleware and the APPEND_SLASH setti ...
https://man.mtool.work/django/6.1/releases/1.11.15.html
Django 1.10.2 リリースノート 10790
Django 1.10.2 リリースノート October 1, 2016 Django 1.10.2 fixes several bugs in 1.10.1. バグ修正 Fixed a crash in MySQL database validation where SELECT @@sql_mode doesn't return a result ( #27180 ). Allowed combining contrib.postgres.sear ... archQuery with more than one & or | operators ( #27143 ). Disabled system check for URL patterns beginning with a '/' when APPEND_SLASH=False ( #27238 ). Fixed model form default fallback for CheckboxSelectMultiple , MultiWidget , FileInput , SplitDate ...
https://man.mtool.work/django/6.1/releases/1.10.2.html
Django 2.0.8 リリースノート 10466
Django 2.0.8 リリースノート 2018年8月1日 Django 2.0.8 では、2.0.7 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-14574: CommonMiddleware に対するオープンリダイレクトの可能性 If the CommonMiddleware and the APPEND ...
https://man.mtool.work/django/6.1/releases/2.0.8.html
システムチェックフレームワーク 10466
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... ister () def example_check ( app_configs , ** kwargs ): errors = [] # ... your check logic here if check_failed : errors . append ( Error ( "an error" , hint = "A hint." , obj = checked_object , id = "myapp.E001" , ) ) return errors チェック関数は、 必 ... you want to add extra checks, you can extend the implementation on the base class, perform any extra checks you need, and append any messages to those generated by the base class. It's recommended that you delegate each check to separate methods. Rang ... deploy ( app_configs , ** kwargs ): errors = [] if getattr ( settings , "ENABLE_ANALYTICS" , None ) is not True : errors . append ( Warning ( "The ENABLE_ANALYTICS setting should be set to True in deployment." , id = "myapp.W001" , ) ) return errors こ ...
https://man.mtool.work/django/6.1/topics/checks.html
ビューのデコレータ 10143
ビューのデコレータ Djangoでは、さまざまなHTTP機能をサポートするために、ビューに適用できるいくつかのデコレータが提供されています。 ここで紹介するデコレータをクラスベースのビューで使用する方法については、 クラスをデコレーションする を参照して ... mon(一般) django.views.decorators.common のデコレータで、 CommonMiddleware の動作をビューごとにカスタマイズできます。 no_append_slash () [ソース] このデコレータは、個々のビューを APPEND_SLASH URL 正規化から除外します。 ...
https://man.mtool.work/django/6.1/topics/http/decorators.html
JavaScript code 8816
JavaScript code While most of Django core is Python, the admin and gis contrib apps contain JavaScript code. Please follow these coding standards when writing JavaScript code for inclusion in Django. Code style Please conform to the indenta ... module: QUnit . module ( 'magicTricks' , { beforeEach : function () { const $ = django . jQuery ; $ ( '#qunit-fixture' ). append ( '<button class="button"></button>' ); } }); QUnit . test ( 'removeOnClick removes button on click' , function ( assert ) ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/javascript...
フラットページ (flatpages) アプリ 8493
フラットページ (flatpages) アプリ Django にはオプションで "flatpages" アプリケーションが付属しています。これを使えば、"フラットな" HTML コンテンツをデータベースに保存することができ、 Django のadmin インタフェースや Python API を使って管理で ... es import views # Your other patterns here urlpatterns += [ re_path ( r "^(?P<url>.*/)$" , views . flatpage ), ] 警告 もし APPEND_SLASH を False に設定する場合、スラッシュを除去しないと、末尾にスラッシュのないキャッチオールパターンや flatpages にはマッ ... ます。 ミドルウェアは結果のURLが有効なフラットページを参照している場合にのみ、末尾のスラッシュを追加してリダイレクトします ( APPEND_SLASH 設定を参照します) 。リダイレクトは永続的です(301ステータスコード)。 マッチするものが見つからない場合は、リクエストは ...
https://man.mtool.work/django/6.1/ref/contrib/flatpages.html
Porting your apps from Django 0.96 to 1.0 8493
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 ... ib.auth into the settings module. Instead of using from django.contrib.auth import LOGIN_URL refer to settings.LOGIN_URL . APPEND_SLASH behavior has been updated In 0.96, if a URL didn't end in a slash or have a period in the final component of its pat ... h, and APPEND_SLASH was True, Django would redirect to the same URL, but with a slash appended to the end. Now, Django checks to see whe ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.8 リリースノート 8169
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... mum filename length constraints. Filenames exceeding this argument will get truncated. This prevents a database error when appending a unique suffix to a long filename that already exists on the storage. See the deprecation note about adding this argum ... ry.add_aggregate() , replaced by add_annotation() . Query.set_aggregate_mask() , replaced by set_annotation_mask() . Query.append_aggregate_mask() , replaced by append_annotation_mask() . Extending management command arguments through Command.option_li ... r class. Usage of the hardcoded Hold down "Control", or "Command" on a Mac, to select more than one. string to override or append to user-provided help_text in forms for ManyToMany model fields is not performed by Django anymore either at the model or ...
https://man.mtool.work/django/6.1/releases/1.8.html
PREV 1 2 3 4 NEXT