... REQUESTS を無効化します。 from django.db import transaction @transaction . non_atomic_requests def my_view ( request ): do_stuff () @transaction . non_atomic_requests ( using = "other" ) def my_other_view ( request ): do_stuff_on_the_other_database () ... django.db import transaction @transaction . atomic def viewfunc ( request ): # This code executes inside a transaction. do_stuff () and as a context manager : from django.db import transaction def viewfunc ( request ): # This code executes in autocomm ... it mode (Django's default). do_stuff () with transaction . atomic (): # This code executes inside a transaction. do_more_stuff () try/except ブロック内で atomi ... ... REQUESTS を無効化します。 from django.db import transaction @transaction . non_atomic_requests def my_view ( request ): do_stuff () @transaction . non_atomic_requests ( using = "other" ) def my_other_view ( request ): do_stuff_on_the_other_database () ... django.db import transaction @transaction . atomic def viewfunc ( request ): # This code executes inside a transaction. do_stuff () and as a context manager : from django.db import transaction def viewfunc ( request ): # This code executes in autocomm ... it mode (Django's default). do_stuff () with transaction . atomic (): # This code executes inside a transaction. do_more_stuff () try/except ブロック内で atomi ... ... n Read the Docs . Pre-release tasks ¶ A few items need to be taken care of before even beginning the release process. This stuff starts about a week before the release; most of it can be done any time leading up to the actual release. 10 (or more) day ... ... n Read the Docs . Pre-release tasks ¶ A few items need to be taken care of before even beginning the release process. This stuff starts about a week before the release; most of it can be done any time leading up to the actual release. 10 (or more) day ... ... .lookups import Exact class MyField ( Field ): ... class MyFieldExact ( Exact ): def get_prep_lookup ( self ): # do_custom_stuff_for_myfield ... MyField . register_lookup ( MyFieldExact ) django.contrib.gis ¶ SpatiaLite < 3.0 および GEOS < 3.3 のサポー ... ... .lookups import Exact class MyField ( Field ): ... class MyFieldExact ( Exact ): def get_prep_lookup ( self ): # do_custom_stuff_for_myfield ... MyField . register_lookup ( MyFieldExact ) django.contrib.gis ¶ SpatiaLite < 3.0 および GEOS < 3.3 のサポー ... ... クする場合に使えます: {% url 'some-url-name' as the_url %} {% if the_url %} < a href = " {{ the_url }} " > Link to optional stuff </ a > {% endif %} 名前空間化された URL を取り出したい場合は、完全修飾名で指定してください: {% url 'myapp:view-name' %} こ ... ... lient ): # Specialized methods for your environment ... class MyTest ( TestCase ): client_class = MyTestClient def test_my_stuff ( self ): # Here self.client is an instance of MyTestClient... call_some_test_code () The same pattern applies to the asyn ... ... クする場合に使えます: {% url 'some-url-name' as the_url %} {% if the_url %} < a href = " {{ the_url }} " > Link to optional stuff </ a > {% endif %} 名前空間化された URL を取り出したい場合は、完全修飾名で指定してください: {% url 'myapp:view-name' %} こ ... ... lient ): # Specialized methods for your environment ... class MyTest ( TestCase ): client_class = MyTestClient def test_my_stuff ( self ): # Here self.client is an instance of MyTestClient... call_some_test_code () The same pattern applies to the asyn ... 2026年10月08日