per page, with , order by , clip by
Results of 1 - 10 of about 44 for location (0.003 sec.)
管理アクション 12771
管理アクション Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当てはまります。しかし、一度に多くのオブジェクトに同じ変更を適用する必要がある場合、この仕事は退 ... 表示しない、または許可しないようにします。 条件付きでアクションを有効/無効にする ModelAdmin. get_actions ( request , action_location = ActionLocation.CHANGE_LIST ) [ソース] 最後に、 ModelAdmin.get_actions() をオーバーライドすることで、リクエスト単位で (つ ... 条件付きでアクションを有効/無効にすることができます。 This returns a dictionary of actions allowed for the specific action_location . The keys are action names, and the values are Action objects. たとえば、名前が J で始まるユーザーだけがオブジェクトを一括 ... うにしたい場合、次のようにします。 class MyModelAdmin ( admin . ModelAdmin ): ... def get_actions ( self , request , action_location = ActionLocation . CHANGE_LIST ): actions = super () . get_actions ( request , action_location = action_location ) if requ ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
サイトマップ・フレームワーク 12632
サイトマップ・フレームワーク Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 サイトマップとは、検索エンジンのインデクサーに、ページの変更頻度や、あるページがサイト内の他のペー ... or QuerySet of objects. The objects returned will get passed to any callable methods corresponding to a sitemap property ( location , lastmod , changefreq , and priority ). lastmod は datetime を返すべきです。 There is no location method in this example, ... but you can provide it in order to specify the URL for your object. By default, location calls get_absolute_url() on each object and returns the result. Sitemap クラス リファレンス class Sitemap [ソース] サイトマ ... bjects. The framework doesn't care what type of objects they are; all that matters is that these objects get passed to the location , lastmod , changefreq and priority methods. location [ソース] オプション。 メソッドまたは属性のいずれか。 If it's a metho ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
Django のキャッシュフレームワーク 12632
Django のキャッシュフレームワーク 動的なウェブサイトの基本的なトレードオフは、ええと、それが動的であるということです。ユーザーがページをリクエストするたびに、ウェブサーバーはあらゆる種類の計算を行い (データベースのクエリから、テンプレートの ... emcacheCache または django.core.cache.backends.memcached.PyLibMCCache (選択した memcached バインディングによる) に設定する LOCATION を ip:port の値 (ここで、 ip は Memcached デーモンの IP アドレス、 port は Memcached が起動しているポート)、または、 unix: ... ンディングを使用しています。 CACHES = { "default" : { "BACKEND" : "django.core.cache.backends.memcached.PyMemcacheCache" , "LOCATION" : "127.0.0.1:11211" , } } 次の例では、Memcached はローカルの Unix socket ファイル /tmp/memcached.sock 経由で利用可能であり ... ンディングを使用しています。 CACHES = { "default" : { "BACKEND" : "django.core.cache.backends.memcached.PyMemcacheCache" , "LOCATION" : "unix:/tmp/memcached.sock" , } } Memcached の優れた機能の一つは、複数のサーバでキャッシュを共有できることです。つまり、 ...
https://man.mtool.work/django/6.1/topics/cache.html
Django のユーザーデータベースに対する Apache からの認証 10004
Django のユーザーデータベースに対する Apache からの認証 Since keeping multiple authentication databases in sync is a common problem when dealing with Apache, you can configure Apache to authenticate against Django's authentication system di ... to/mysite.com/mysite/wsgi.py WSGIPythonPath /path/to/mysite.com WSGIProcessGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL} <Location "/secret" > AuthType Basic AuthName "Top Secret" Require valid-user AuthBasicProvider wsgi WSGIAuthUserScript /path/to/mys ... ite.com/mysite/wsgi.py </Location> WSGIAuthUserScript ディレクティブは、プロンプトから受け取ったユーザ名とパスワードを渡して、指定した wsgi スクリプトの che ... になります: WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py WSGIProcessGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL} <Location "/secret" > AuthType Basic AuthName "Top Secret" AuthBasicProvider wsgi WSGIAuthUserScript /path/to/mysite.com/mysite/wsgi ...
https://man.mtool.work/django/6.1/howto/deployment/wsgi/apache-auth.html
ファイルストレージ API 8698
ファイルストレージ API デフォルトのストレージクラスの取得 Djangoでは、デフォルトストレージクラスにアクセスするための便利な方法を提供しています。 storages STORAGES で定義されたエイリアスを使用してストレージインスタンスを取得できる、辞書ライク ... default_storage default_storage は DefaultStorage のインスタンスです。 FileSystemStorage クラス class FileSystemStorage ( location = None , base_url = None , file_permissions_mode = None , directory_permissions_mode = None , allow_overwrite = False ) [ソ ... 実装を提供します。 注釈 FileSystemStorage.delete() メソッドは、指定されたファイル名が存在しない場合に例外を発生させません。 location [ソース] ファイルを格納するディレクトリの絶対パス。デフォルトは MEDIA_ROOT 設定の値です。 base_url [ソース] この場所に保存 ... 変更の時間ですが、他のシステム(例えば Windows)では、ファイルの作成時間です。 InMemoryStorage クラス class InMemoryStorage ( location = None , base_url = None , file_permissions_mode = None , directory_permissions_mode = None ) [ソース] InMemoryStorage クラ ...
https://man.mtool.work/django/6.1/ref/files/storage.html
Django 1.3 リリースノート 8406
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... ver been taken in account for JavaScript translations and remain in the same situation considering the deprecation of such location. Transaction management When using managed transactions -- that is, anything but the default autocommit mode -- it is impo ... and syntax. Changes to the login methods of the admin In previous version the admin app defined login methods in multiple locations and ignored the almost identical implementation in the already used auth app. A side effect of this duplication was the m ... aining the settings module) and there has been a shift in other parts of the framework to stop using it as a reference for location of assets at runtime. Detection of the locale subdirectory tends to fail when the deployment scenario is more complex than ...
https://man.mtool.work/django/6.1/releases/1.3.html
How to use Django with Granian 8268
How to use Django with Granian Granian is a Rust-based high-performance HTTP server for Python applications, supporting ASGI and WSGI interfaces. Installing Granian You can install Granian with pip : python -m pip install granian Running Dj ... hen Granian is installed, a granian command is available which runs ASGI applications. Granian needs to be called with the location of a module containing an ASGI application object, followed by what the application is called (separated by a colon), usin ...
https://man.mtool.work/django/6.1/howto/deployment/asgi/granian.html
How to use Django with Granian 8268
How to use Django with Granian Granian is a Rust-based high-performance HTTP server for Python applications, supporting ASGI and WSGI interfaces. Installing Granian You can install Granian with pip : python -m pip install granian Running Dj ... hen Granian is installed, a granian command is available which runs WSGI applications. Granian needs to be called with the location of a module containing a WSGI application object named application , using the --interface wsgi option. For a typical Djan ...
https://man.mtool.work/django/6.1/howto/deployment/wsgi/granian.html
Django 1.4.20 リリースノート 8114
Django 1.4.20 リリースノート March 18, 2015 Django 1.4.20 fixes one security issue in 1.4.19. Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.auth.views.login() an ... sidered URLs like \x08javascript:... safe. This issue doesn't affect Django currently, since we only put this URL into the Location response header and browsers seem to ignore JavaScript there. Browsers we tested also treat URLs prefixed with control cha ...
https://man.mtool.work/django/6.1/releases/1.4.20.html
Django 1.4.6 リリースノート 7976
Django 1.4.6 リリースノート August 13, 2013 Django 1.4.6 fixes one security issue present in previous Django releases in the 1.4 series, as well as one other bug. This is the sixth bugfix/security release in the Django 1.4 series. Mitigated ... a link, they could suffer from a XSS attack. This bug doesn't affect Django currently, since we only put this URL into the Location response header and browsers seem to ignore JavaScript there. バグ修正 Fixed an obscure bug with the override_settings() d ...
https://man.mtool.work/django/6.1/releases/1.4.6.html
PREV 1 2 3 4 5 NEXT