per page, with , order by , clip by
Results of 1 - 10 of about 21 for home (0.005 sec.)
staticfiles アプリ 14579
staticfiles アプリ django.contrib.staticfiles は、各アプリケーション(と、あらかじめ指定した他の場所)から静的ファイルを収集し、本番環境で簡単に提供できるように一か所にまとめます。 参考 静的ファイルアプリの導入と活用例については、 静的ファイ ... 上の相対パスを検索します。 例: /  $ python manage.py findstatic css/base.css admin/js/core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/static/css/base.css Found 'admin/js/core.js' here: /home/p ... ngo/contrib/admin/media/js/core.js ...\> py manage.py findstatic css\base.css admin\js\core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/static/css/base.css Found 'admin/js/core.js' here: /home/p ... -first オプションを使用してください。 /  $ python manage.py findstatic css/base.css --first Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css ...\> py manage.py findstatic css\base.css --first Found 'css/base.css' here: / ...
https://man.mtool.work/django/6.1/ref/contrib/staticfiles.html
テンプレート 12143
テンプレート Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです。テンプレートには、出力したい HTML を書いた静的な部分と、動的なコンテンツを挿入する方法を書い ... 設定は次のようになっています。 TEMPLATES = [ { "BACKEND" : "django.template.backends.django.DjangoTemplates" , "DIRS" : [ "/home/html/example.com" , "/home/html/default" , ], }, { "BACKEND" : "django.template.backends.jinja2.Jinja2" , "DIRS" : [ "/hom ... e/html/jinja2" , ], }, ] get_template('story_detail.html') を呼び出した場合、Django は次の順番にファイルを探します。 /home/html/example.com/story_detail.html ( 'django' エンジン) /home/html/default/story_detail.html ( 'django' エンジン) /home/ht ... elect_template(['story_253_detail.html', 'story_detail.html']) を呼び出した場合、Djangoは以下の順番にファイルを探します。 /home/html/example.com/story_253_detail.html ( 'django' エンジン) /home/html/default/story_253_detail.html ( 'django' エンジン) ...
https://man.mtool.work/django/6.1/topics/templates.html
Django を uWSGI とともに使うには? 8862
Django を uWSGI とともに使うには? uWSGI は高速かつ自己回復的、開発者やシステム管理者にとって使いやすいアプリケーションコンテナサーバーで、純粋な C 言語で記述されています。 参考 uWSGI のドキュメントは、Django、nginx および uWSGI をカバーした ... 0 seconds --max-requests = 5000 \ # respawn processes after serving 5000 requests --vacuum \ # clear environment on exit --home = /path/to/virtual/env \ # optional path to a virtual environment --daemonize = /var/log/uwsgi/yourproject.log # backgroun ... tartproject によって生成される mysite.wsgi モジュールです。 env : 少なくとも DJANGO_SETTINGS_MODULE を含む必要があります。 home : プロジェクトの仮想環境へのパスを指定します。 ini 設定ファイルの例: [uwsgi] chdir = /path/to/your/project module = mysite ...
https://man.mtool.work/django/6.1/howto/deployment/wsgi/uwsgi.html
Django 4.2 リリースノート 8608
Django 4.2 リリースノート 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... するようになりました。これにより、ヘッダーを宣言するためのより自然な構文が可能になります。 # Before: self . client . get ( "/home/" , HTTP_ACCEPT_LANGUAGE = "fr" ) await self . async_client . get ( "/home/" , ACCEPT_LANGUAGE = "fr" ) # After: self . cl ... ient . get ( "/home/" , headers = { "accept-language" : "fr" }) await self . async_client . get ( "/home/" , headers = { "accept-language" : " ...
https://man.mtool.work/django/6.1/releases/4.2.html
How to release Django 8490
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... entication factors, not TOTP (one-time codes). Create an API token following the official documentation , and set up your $HOME/.pypirc file like this: ~/.pypirc [distutils] index-servers = pypi django [pypi] username = __token__ password = # User-sc ... to Django's project on Transifex , with a Manager role. Generate an API Token in the user setting section and set up your $HOME/.transifexrc file like this: ~/.transifexrc [https://www.transifex.com] rest_hostname = https://rest.api.transifex.com tok ... example pre-release announcement . A few days before a feature freeze In preparation for the alpha release, the directory /home/www/www/media/releases/A.B must be created on the djangoproject server. Before the feature freeze, a branch targeting main ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
地理空間ライブラリのインストール 8490
地理空間ライブラリのインストール 地理空間ライブラリ (Geospatial library) GeoDjangoは、以下のオープンソースの地理空間ライブラリを使用し、またはそのインターフェースを提供します: プログラム 説明 必須 サポートされるバージョン GEOS Geometry Engi ... ing may be added to your Django settings file with the full path to the GEOS C library. For example: GEOS_LIBRARY_PATH = '/home/bob/local/lib/libgeos_c.so' 注釈 設定は C 共有ライブラリの フル パスである必要があります。つまり、 libgeos.so ではなく lib ... tting may be added to your Django settings file with the full path to the GDAL library. For example: GDAL_LIBRARY_PATH = '/home/sue/local/lib/libgdal.so' 脚注 [ 1 ] The datum shifting files are needed for converting data to and from certain projectio ...
https://man.mtool.work/django/6.1/ref/contrib/gis/install/geolibs.html
ベース・ビュー 8372
ベース・ビュー 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、それ自体で使うことも継承して使うこともできます。プロジェクトに必要な全ての機能を提供するわけでは ... ext_data() Example views.py : from django.views.generic.base import TemplateView from articles.models import Article class HomePageView ( TemplateView ): template_name = "home.html" def get_context_data ( self , ** kwargs ): context = super () . get_ ... ] = Article . objects . all ()[: 5 ] return context Example urls.py : from django.urls import path from myapp.views import HomePageView urlpatterns = [ path ( "" , HomePageView . as_view (), name = "home" ), ] コンテキスト ( ContextMixin を通じて) ビ ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
モデルフィールドリファレンス 8236
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... hot という名前の場合、 {{ object.mug_shot.url }} でテンプレート内の画像の絶対パスを取得できます。 例えば、 MEDIA_ROOT が '/home/media' に設定され、 upload_to が 'photos/%Y/%m/%d' に設定されているとします。 upload_to の '%Y/%m/%d' の部分は strftime() ... フォーマットです。 '%Y' は4桁の年、 '%m' は2桁の月、 '%d' は2桁の日です。2007年1月15日にファイルをアップロードすると、 /home/media/photos/2007/01/15 というディレクトリに保存されます。 アップロードされたファイルのディスク上のファイル名やファイルサイ ... : FilePathField. path 必須です。 FilePathField が選択肢から取得するディレクトリへの、ファイルシステムの絶対パスです。例: "/home/images" 。 path には呼び出し可能オブジェクトを指定することもでき、これは例えば実行時に動的にパスを設定する関数などです。例 ...
https://man.mtool.work/django/6.1/ref/models/fields.html
独自のテンプレートタグとフィルタを作る 8118
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... なり、 Python 関数の引数は 1 つになります--タグが呼び出された時点のテンプレートコンテキストです。 例えば、メインページを指す home_link と home_title 変数を含むコンテキストの中で常に使用される inclusion tag を書くとします。Python の関数は次のようになりま ... : @register . inclusion_tag ( "link.html" , takes_context = True ) def jump_link ( context ): return { "link" : context [ "home_link" ], "title" : context [ "home_title" ], } 最初の引数は context に しなければならない ことに注意してください。 この re ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
GEOS API 7881
GEOS API 背景 GEOS とは? GEOS stands for Geometry Engine - Open Source , and is a C++ library, ported from the Java Topology Suite . GEOS implements the OpenGIS Simple Features for SQL spatial predicate functions and spatial operators. GEOS ... : ファイル内の空間データに対応する GEOSGeometry 例: >>> from django.contrib.gis.geos import fromfile >>> g = fromfile ( "/home/bob/geom.wkt" ) fromstr ( string , srid = None ) [ソース] パラメータ : string ( str ) -- 空間データを含む文字列 srid ( int ... on of the GEOS C library. Typically, this setting is only used if the GEOS C library is in a non-standard location (e.g., /home/bob/lib/libgeos_c.so ). 注釈 設定は C 共有ライブラリの フル パスである必要があります。つまり、 libgeos.so ではなく libgeos ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geos.html
PREV 1 2 3 NEXT