per page, with , order by , clip by
Results of 1 - 10 of about 20 for images (0.005 sec.)
はじめての Django アプリ作成、その 6 13747
はじめての Django アプリ作成、その 6 このチュートリアルは チュートリアル 5 の続きです。Web 投票アプリケーションのテストが完成したので、今度はスタイルシートや画像を追加しましょう。 サーバで生成するHTML以外に、Webアプリケーションは一般的に完全 ... が確認できるでしょう。 背景画像を追加する 次に画像用にサブディレクトリを作成します。 polls/static/polls/ ディレクトリの中に images サブディレクトリを 作ります。ディレクトリの中に背景と使用したい画像ファイルを追加します。このチュートリアルでは background ... .png という名前ファイルを使用します。このファイルのフルパスは polls/static/polls/images/background.png となるようにします。 さらに、スタイルシート ( polls/static/polls/style.css ) に画像への参照を追加します。 p ... olls/static/polls/style.css body { background : white url ( "images/background.png" ) no-repeat ; } http://localhost:8000/polls/ をリロードすると、読み込んだ背景画像がスクリーンの左上部に確認 ...
https://man.mtool.work/django/6.1/intro/tutorial06.html
Django 1.11.2 リリースノート 10960
Django 1.11.2 リリースノート June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated. Minor feature The new LiveServerTestCase.port attribute rea ... d file extension validation added in Django 1.11 from the model field to the form field to reallow the use case of storing images without an extension ( #28242 ). ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
モデルフィールドリファレンス 10485
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... ePathField. path 必須です。 FilePathField が選択肢から取得するディレクトリへの、ファイルシステムの絶対パスです。例: "/home/images" 。 path には呼び出し可能オブジェクトを指定することもでき、これは例えば実行時に動的にパスを設定する関数などです。例: impor ... t os from django.conf import settings from django.db import models def images_path (): return os . path . join ( settings . LOCAL_FILE_DIR , "images" ) class MyModel ( models . Model ): file = models ... . FilePathField ( path = images_path ) FilePathField. match 省略可能です。正規表現で、文字列として、 FilePathField がファイル名をフィルタリングするために使 ...
https://man.mtool.work/django/6.1/ref/models/fields.html
アクセシビリティ 9567
アクセシビリティ The Django project is committed to ensuring that websites built with Django are usable by everyone, including people with disabilities. Django's built-in components, such as the admin interface and default form rendering, s ... ut causes scrolling in both directions (vertical and horizontal). Two-dimensional scrolling is acceptable for content like images, maps, videos, and data tables, which require both dimensions to be usable. Forced-colors mode (for example Windows Contra ...
https://man.mtool.work/django/6.1/internals/contributing/accessibility.html
組み込みテンプレートタグとフィルタ 9567
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... レージの url() メソッドを使ってファイルを配信します。たとえば以下のようにします: {% load static %} < img src = " {% static 'images/hi.jpg' %} " alt = "Hi!" > 普通のコンテキスト変数を使うこともできます。例えば user_stylesheet 変数をテンプレートに渡す場合 ... a = "screen" > 静的 URL を表示することなく取得したい場合は、少し異なる呼び出し方法になります: {% load static %} {% static "images/hi.jpg" as myphoto %} < img src = " {{ myphoto }} " alt = "Hi!" > Jinja2 テンプレートを使いますか? Jinja2 で static タグを ... 必要がある場合は、 get_static_prefix テンプレートタグが使用できます: {% load static %} < img src = " {% get_static_prefix %} images/hi.jpg" alt = "Hi!" > 値を何度も使う必要がある場合、不要な処理を避けるために使用できる別の方式もあります: {% load static % ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
Django 1.8.3 リリースノート 9567
Django 1.8.3 リリースノート July 8, 2015 Django 1.8.3 fixes several security issues and bugs in 1.8.2. Also, django.utils.deprecation.RemovedInDjango20Warning was renamed to RemovedInDjango110Warning as the version roadmap was revised to 1. ... g UUID primary keys ( #24912 ). Fixed removing unique_together constraints on MySQL ( #24972 ). Fixed crash when uploading images with MIME types that Pillow doesn't detect, such as bitmap, in forms.ImageField ( #24948 ). Fixed a regression when deleti ...
https://man.mtool.work/django/6.1/releases/1.8.3.html
File オブジェクト 9091
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... ス class ImageFile ( file_object , name = None ) [ソース] Django には画像専用の組み込みクラスがあります。 django.core.files.images.ImageFile は File のすべての属性とメソッドを継承し、さらに次のものを提供します: width [ソース] 画像の幅 (ピクセル単位)。 h ...
https://man.mtool.work/django/6.1/ref/files/file.html
静的ファイル (画像、JavaScript、CSS など) を管理する 8156
静的ファイル (画像、JavaScript、CSS など) を管理する Websites generally need to serve additional files such as images, JavaScript, or CSS. In Django, we refer to these files as "static files". Django provides django.contrib.staticfiles to h ...
https://man.mtool.work/django/6.1/howto/static-files/
Django の概要 7698
Django の概要 Django は変転の激しいニュースルーム環境で開発された経緯から、よくある Web 開発タスクを迅速かつ簡単化するように設計されています。ここでは Django による データベースを使った Web アプリケーション開発をざっと見てみましょう。 このド ... ml lang = "en" > < head > < title > {% block title %}{% endblock %} </ title > </ head > < body > < img src = " {% static 'images/sitelogo.png' %} " alt = "Logo" > {% block content %}{% endblock %} </ body > </ html > 簡単に言えば、サイトのルックアンド ...
https://man.mtool.work/django/6.1/intro/overview.html
高度なチュートリアル: 再利用可能アプリの書き方 7698
高度なチュートリアル: 再利用可能アプリの書き方 この高度なチュートリアルは、 チュートリアル その8 が終わったところから始まります。Web投票アプリケーションを、新しいプロジェクトで再利用でき、他の人に共有できる独立した Python のパッケージへと変 ... ls.py asgi.py wsgi.py polls/ __init__.py admin.py apps.py migrations/ __init__.py 0001_initial.py models.py static/ polls/ images/ background.png style.css templates/ polls/ detail.html index.html results.html tests.py urls.py views.py templates/ admin ...
https://man.mtool.work/django/6.1/intro/reusable-apps.html
PREV 1 2 NEXT