検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 239 for example (0.050 sec.)
PostgreSQL specific model fields — Django 4.0.6 ドキュメント 7456
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... should be an instance of a subclass of Field . For example, it could be an IntegerField or a CharField . Most ... an instance of ArrayField as the base_field . For example: from django.contrib.postgres.fields import ArrayF ... nsforms for ArrayField . We will use the following example model: from django.contrib.postgres.fields import ... set of the data. It uses the SQL operator @> . For example: >>> Post . objects . create ( name = 'First post' ...
https://man.plustar.jp/django/ref/contrib/postgres/fields.html - [similar]
django-admin と manage.py — Django 4.0.6 ドキュメント 7283
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... asename of the package containing your models. For example, if your INSTALLED_APPS contains the string 'mysit ... formed to just those in a particular category. For example, to perform only models and compatibility checks, ... ssed on to the underlying command-line client. For example, with PostgreSQL you can use the psql command's -c ... appear in the defaults are followed by "###" . For example, the default settings don't define ROOT_URLCONF , ...
https://man.plustar.jp/django/ref/django-admin.html - [similar]
Writing documentation — Django 4.0.6 ドキュメント 7232
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tter explanations through clearer writing and more examples. New features: documentation of features that hav ... k to reference material rather than repeat it. Use examples and don't be reluctant to explain things that see ... documentation at 80 characters wide, unless a code example is significantly less readable when split over two ... e highlighted. Adding .. code-block:: python , for example, will force highlighting despite invalid syntax. T ...
https://man.plustar.jp/django/internals/contributing/writing-documentation.html - [similar]
How to configure and use logging — Django 4.0.6 ドキュメント 7100
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e logging, use a view function as suggested in the example below. First, import the Python logging library, a ... ation at module level. And then in a function, for example in a view, send a record to the logger: def some_v ... pear in the console. The WARNING level used in the example above is one of several logging severity levels : ... , INFO , WARNING , ERROR , CRITICAL . So, another example might be: logger . critical ( 'Payment system is n ...
https://man.plustar.jp/django/howto/logging.html - [similar]
Measurement Objects — Django 4.0.6 ドキュメント 6876
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... gument indicating the context of the units. In the example below, two different distance objects are instanti ... ed with sq_ (area units are square in nature). For example, Area(sq_m=2) creates an Area object representing ... ed unit attribute name set with desired value. For example, the following creates a distance object represent ... its corresponding to the given unit attribute. For example: >>> print ( dist . km ) 8.04672 classmethod unit_ ...
https://man.plustar.jp/django/ref/contrib/gis/measure.html - [similar]
複数のデータベース — Django 4.0.6 ドキュメント 6876
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... er database has been selected. The following is an example settings.py snippet defining two databases -- a de ... outed to the default database. The following is an example settings.py snippet defining two non-default datab ... hronize all models onto all databases in the first example above, you would need to call: $ ./manage.py migra ... ability of particular models. If, as in the second example above, you've left the default database empty, you ...
https://man.plustar.jp/django/topics/db/multi-db.html - [similar]
翻訳 — Django 4.0.6 ドキュメント 6825
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... You could code this without using the alias. This example is identical to the previous one: from django.http ... thon's standard named-string interpolation syntax. Example: def my_view ( request , m , d ): output = _ ( 'To ... fic translations reorder the placeholder text. For example, an English translation may be "Today is November ... rapolated variable included in the literal. In the examples above, note how we used the name Python variable ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
リクエストとレスポンスのオブジェクト — Django 4.0.6 ドキュメント 6784
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... es and adding an HTTP_ prefix to the name. So, for example, a header called X-Bender would be mapped to the M ... Macintosh; Intel Mac OS X 10_12_6) For use in, for example, Django templates, headers can also be looked up u ... VER_NAME and SERVER_PORT as detailed in PEP 3333 . Example: "127.0.0.1:8000" Raises django.core.exceptions.Di ... to rewrite the proxy headers, as in the following example: class MultipleProxyMiddleware : FORWARDED_FOR_FIE ...
https://man.plustar.jp/django/ref/request-response.html - [similar]
Generic date ビュー — Django 4.0.6 ドキュメント 6734
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... a default template_name_suffix of _archive_year . Example myapp/views.py : from django.views.generic.dates i ... w . as_view (), name = "article_year_archive" ), ] Example myapp/article_archive_year.html : < ul > {% for da ... a default template_name_suffix of _archive_month . Example myapp/views.py : from django.views.generic.dates i ... s import ArticleMonthArchiveView urlpatterns = [ # Example: /2012/08/ path ( '<int:year>/<int:month>/' , Arti ...
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html - [similar]
The "sites" framework — Django 4.0.6 ドキュメント 6734
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ified domain name associated with the website. For example, www.example.com . name ¶ A human-readable "verbos ... of ways automatically via a couple of conventions. Example usage ¶ Why would you use sites? It's best explain ... ed through examples. Associating content with multiple sites ¶ The LJ ... a many-to-one relationship, using ForeignKey . For example, if an article is only allowed on a single site, y ...
https://man.plustar.jp/django/ref/contrib/sites.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT