per page, with , order by , clip by
Results of 1 - 10 of about 78 for shortcuts (0.006 sec.)
Djangoにはじめて貢献する — Django 6.1 ドキュメント 14518
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Djangoにはじめて貢献する ¶ はじめに ¶ コミュニティに少し貢献してみませんか? たとえばあなたは、Django のバグを見つけて修正してほしいと思っていたり、ち ... 」に取り組みます。以下はその架空の詳細です。 チケット #99999 -- トーストを焼くようにする Django は、 toast を返す関数 django.shortcuts.make_toast() を提供しなければなりません。 これよりこの機能と関連するテストを実装します。 ブランチを作る ¶ 変更を加える前に ... ンでの例題に移りましょう。 チケット #99999 に対するテストの実装 ¶ このチケットを解決するために、 make_toast() 関数に django.shortcuts モジュールに追加します。まずはこの関数を使うためのテストを書いて、関数の出力が正しいことを確認しましょう。 Djangoの tests/ ... rtcuts/ フォルダへ移動して test_make_toast.py というファイルを新たに作ります。以下のコードを追加してください。 from django.shortcuts import make_toast from django.test import SimpleTestCase class MakeToastTests ( SimpleTestCase ): def test_make_toast ( se ...
https://man.mtool.work/django/6.1/intro/contributing.html
Djangoにはじめて貢献する — Django 6.1 ドキュメント 14518
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Djangoにはじめて貢献する ¶ はじめに ¶ コミュニティに少し貢献してみませんか? たとえばあなたは、Django のバグを見つけて修正してほしいと思っていたり、ち ... 」に取り組みます。以下はその架空の詳細です。 チケット #99999 -- トーストを焼くようにする Django は、 toast を返す関数 django.shortcuts.make_toast() を提供しなければなりません。 これよりこの機能と関連するテストを実装します。 ブランチを作る ¶ 変更を加える前に ... ンでの例題に移りましょう。 チケット #99999 に対するテストの実装 ¶ このチケットを解決するために、 make_toast() 関数に django.shortcuts モジュールに追加します。まずはこの関数を使うためのテストを書いて、関数の出力が正しいことを確認しましょう。 Djangoの tests/ ... rtcuts/ フォルダへ移動して test_make_toast.py というファイルを新たに作ります。以下のコードを追加してください。 from django.shortcuts import make_toast from django.test import SimpleTestCase class MakeToastTests ( SimpleTestCase ): def test_make_toast ( se ...
https://man.mtool.work/django/6.1/intro/contributing.html
Django のショートカット関数 — Django 6.1 ドキュメント 9601
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django のショートカット関数 ¶ django.shortcuts パッケージは、MVC の複数のレベルにまたがるヘルパー関数とクラスを集めたものです。言い換えれば、これらの ... イズ例 ¶ 次の例では、テンプレート myapp/index.html をMIMEタイプ application/xhtml+xml でレンダリングしてみます。 from django.shortcuts import render def my_view ( request ): # View code here... return render ( request , "myapp/index.html" , { "foo" : "bar" ... ブジェクトを渡すことで、そのオブジェクトの get_absolute_url() メソッドが呼び出され、リダイレクト URL を返します: from django.shortcuts import redirect def my_view ( request ): ... obj = MyModel . objects . get ( ... ) return redirect ( obj ) ビューの名前と、 ... f ): return reverse ( "article-detail" , args = [ self . pk ]) views.py ¶ from django.http import JsonResponse from django.shortcuts import get_object_or_404 , resolve_url from .models import Article def article_api_view ( request , pk ): """Return metada ...
https://man.mtool.work/django/6.1/topics/http/shortcuts.html
Django のショートカット関数 — Django 6.1 ドキュメント 9077
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django のショートカット関数 ¶ django.shortcuts パッケージは、MVC の複数のレベルにまたがるヘルパー関数とクラスを集めたものです。言い換えれば、これらの ... イズ例 ¶ 次の例では、テンプレート myapp/index.html をMIMEタイプ application/xhtml+xml でレンダリングしてみます。 from django.shortcuts import render def my_view ( request ): # View code here... return render ( request , "myapp/index.html" , { "foo" : "bar" ... ブジェクトを渡すことで、そのオブジェクトの get_absolute_url() メソッドが呼び出され、リダイレクト URL を返します: from django.shortcuts import redirect def my_view ( request ): ... obj = MyModel . objects . get ( ... ) return redirect ( obj ) ビューの名前と、 ... f ): return reverse ( "article-detail" , args = [ self . pk ]) views.py ¶ from django.http import JsonResponse from django.shortcuts import get_object_or_404 , resolve_url from .models import Article def article_api_view ( request , pk ): """Return metada ...
https://man.mtool.work/django/6.1/topics/http/shortcuts.html
"sites" フレームワーク — Django 6.1 ドキュメント 7548
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » "sites" フレームワーク ¶ Django にはオプションで "sites" フレームワークが付属しています。これは、オブジェクトや機能を特定の Web サイトに関連付けるた ... は、リクエストされたストーリーが 現在のサイトにあるかどうかをチェックします。以下のようになります: from django.contrib.sites.shortcuts import get_current_site def article_detail ( request , article_id ): try : a = Article . objects . get ( id = article_id , ... y change. The cleaner way of accomplishing the same thing is to check the current site's domain: from django.contrib.sites.shortcuts import get_current_site def my_view ( request ): current_site = get_current_site ( request ) if current_site . domain == " ... 使用して「ありがとうございます」通知を抽象化できます。 以下は、フォームハンドリングビューの例です: from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail def register_for_newsletter ( request ): # Check form value ...
https://man.mtool.work/django/6.1/ref/contrib/sites.html
"sites" フレームワーク — Django 6.1 ドキュメント 7548
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » "sites" フレームワーク ¶ Django にはオプションで "sites" フレームワークが付属しています。これは、オブジェクトや機能を特定の Web サイトに関連付けるた ... は、リクエストされたストーリーが 現在のサイトにあるかどうかをチェックします。以下のようになります: from django.contrib.sites.shortcuts import get_current_site def article_detail ( request , article_id ): try : a = Article . objects . get ( id = article_id , ... y change. The cleaner way of accomplishing the same thing is to check the current site's domain: from django.contrib.sites.shortcuts import get_current_site def my_view ( request ): current_site = get_current_site ( request ) if current_site . domain == " ... 使用して「ありがとうございます」通知を抽象化できます。 以下は、フォームハンドリングビューの例です: from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail def register_for_newsletter ( request ): # Check form value ...
https://man.mtool.work/django/6.1/ref/contrib/sites.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 7438
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... , or prefetching the same relation multiple times with different querysets. See prefetch_related() for more details. Admin shortcuts support time zones ¶ The "today" and "now" shortcuts next to date and time input widgets in the admin are now operating in ... or tuple to override TEMPLATE_DIRS : django.template.loader.get_template() django.template.loader.select_template() django.shortcuts.render() django.shortcuts.render_to_response() The time filter now accepts timezone-related format specifiers 'e' , 'O' , ... deprecated: RequestSite now lives in django.contrib.sites.requests . get_current_site() now lives in django.contrib.sites.shortcuts . declared_fieldsets attribute on ModelAdmin ¶ ModelAdmin.declared_fieldsets has been deprecated. Despite being a private ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 7438
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... , or prefetching the same relation multiple times with different querysets. See prefetch_related() for more details. Admin shortcuts support time zones ¶ The "today" and "now" shortcuts next to date and time input widgets in the admin are now operating in ... or tuple to override TEMPLATE_DIRS : django.template.loader.get_template() django.template.loader.select_template() django.shortcuts.render() django.shortcuts.render_to_response() The time filter now accepts timezone-related format specifiers 'e' , 'O' , ... deprecated: RequestSite now lives in django.contrib.sites.requests . get_current_site() now lives in django.contrib.sites.shortcuts . declared_fieldsets attribute on ModelAdmin ¶ ModelAdmin.declared_fieldsets has been deprecated. Despite being a private ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django の機能廃止のタイムライン — Django 6.1 ドキュメント 7341
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の機能廃止のタイムライン ¶ このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタ ... release notes for more details on these changes. The django.db.backends.postgresql_psycopg2 module will be removed. django.shortcuts.render_to_response() will be removed. The DEFAULT_CONTENT_TYPE setting will be removed. HttpRequest.xreadlines() will be r ... ontext and Template respectively. The current_app parameter for the following function and classes will be removed: django.shortcuts.render() django.template.Context() django.template.RequestContext() django.template.response.TemplateResponse() The dictio ... nary and context_instance parameters for the following functions will be removed: django.shortcuts.render() django.shortcuts.render_to_response() django.template.loader.render_to_string() The dirs parameter for the follow ...
https://man.mtool.work/django/6.1/internals/deprecation.html
Django 1.8 リリースノート — Django 6.1 ドキュメント 7341
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... customizing the suffix on a per-field basis — previously it wasn't possible to override a form's label_suffix while using shortcuts such as {{ form.as_p }} in templates. SelectDateWidget now accepts an empty_label argument, which will override the top li ... llowing functions and classes will no longer accept a current_app parameter to set an URL namespace in Django 1.10: django.shortcuts.render() django.template.Context() django.template.RequestContext() django.template.response.TemplateResponse() Set reques ... ions ¶ The following functions will no longer accept the dictionary and context_instance parameters in Django 1.10: django.shortcuts.render() django.shortcuts.render_to_response() django.template.loader.render_to_string() Use the context parameter instead ...
https://man.mtool.work/django/6.1/releases/1.8.html
PREV 1 2 3 4 5 6 7 8 NEXT