検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 31 for slug (0.026 sec.)
Single object mixins — Django 4.0.6 ドキュメント 13880
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... et_queryset() でこれを取得するようにしてください。 slug_field ¶ スラグを含むモデル上のフィールドの名前です ... 。デフォルトでは、 slug_field は 'slug' です。 slug_url_kwarg ¶ スラグを含 ... URLConf キーワード引数の名前です。デフォルトでは、 slug_url_kwarg は 'slug' です。 pk_url_kwarg ¶ プライマ ... f the variable to use in the context. query_pk_and_slug ¶ True の場合、 get_object() がルックアップの際にプ ...
https://man.plustar.jp/django/ref/class-based-views/mixins-single-object.html - [similar]
クラスベース汎用ビュー - フラットインデックス — Django 4.0.6 ドキュメント 13411
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... http_method_names model pk_url_kwarg query_pk_and_slug queryset [ get_queryset() ] response_class [ rende ... r_to_response() ] slug_field [ get_slug_field() ] slug_url_kwarg template ... pk_url_kwarg prefix [ get_prefix() ] query_pk_and_slug queryset [ get_queryset() ] response_class [ rende ... r_to_response() ] slug_field [ get_slug_field() ] slug_url_kwarg success_ ...
https://man.plustar.jp/django/ref/class-based-views/flattened-index.html - [similar]
django.core.validators — Django 4.0.6 ドキュメント 8994
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ther . code ) ) validate_email = EmailValidator () slug_re = _lazy_re_compile ( r "^[-a-zA-Z0-9_]+\Z" ) va ... lidate_slug = RegexValidator ( slug_re , # Translators: "lette ... ns latin letters: a-z and A-Z. _ ( "Enter a valid “slug” consisting of letters, numbers, underscores or hy ... phens." ), "invalid" , ) slug_unicode_re = _lazy_re_compile ( r "^[-\w]+\Z" ) va ...
https://man.plustar.jp/django/_modules/django/core/validators.html - [similar]
The Django admin documentation generator — Django 4.0.6 ドキュメント 8994
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... to :model:`blog.Blog` and :model:`auth.User`. """ slug = models . SlugField ( help_text = "A short label, ... yapp.models import MyModel def my_view ( request , slug ): """ Display an individual :model:`myapp.MyModel ... context = { 'mymodel' : MyModel . objects . get ( slug = slug )} return render ( request , 'myapp/my_temp ...
https://man.plustar.jp/django/ref/contrib/admin/admindocs.html - [similar]
URL ディスパッチャ — Django 4.0.6 ドキュメント 8994
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... rchive ), path ( 'articles/<int:year>/<int:month>/<slug:slug>/' , views . article_detail ), ] メモ: To cap ... views.article_detail(request, year=2003, month=3, slug="building-a-django-site") . Path converters ¶ The ... hes zero or any positive integer. Returns an int . slug - Matches any slug string consisting of ASCII lett ... les/(?P<year>[0-9] {4} )/(?P<month>[0-9] {2} )/(?P<slug>[\w-]+)/$' , views . article_detail ), ] This acco ...
https://man.plustar.jp/django/topics/http/urls.html - [similar]
組み込みタグとフィルタ — Django 4.0.6 ドキュメント 8913
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 例: {{ value | linebreaks }} If value is Joel\nis a slug , the output will be <p>Joel<br>is a slug</p> . li ... {{ value | linebreaksbr }} If value is Joel\nis a slug , the output will be Joel<br>is a slug . linenumbe ... , 'b', 'c'] ならば、出力は ['a', 'b'] となります。 slugify ¶ ASCIIに変換します。スペースをハイフ​​ンに変換 ... た、先頭と末尾の空白を取り除きます。 例: {{ value | slugify }} value が "Joel is a slug" であるとき、出力は ...
https://man.plustar.jp/django/ref/templates/builtins.html - [similar]
バリデータ — Django 4.0.6 ドキュメント 8913
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ator instance without any customizations. validate_slug ¶ validate_slug ¶ A RegexValidator instance that e ... numbers, underscores or hyphens. validate_unicode_slug ¶ validate_unicode_slug ¶ A RegexValidator instanc ... mailValidator URLValidator validate_email validate_slug validate_unicode_slug validate_ipv4_address valida ...
https://man.plustar.jp/django/ref/validators.html - [similar]
翻訳 — Django 4.0.6 ドキュメント 8913
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... iews . index , name = 'index' ), path ( 'category/<slug:slug>/' , news_views . category , name = 'category ... ' ), path ( '<slug:slug>/' , news_views . details , name = 'detail' ) ... ( 'nl' ) >>> reverse ( 'news:detail' , kwargs = { 'slug' : 'news-slug' }) '/nl/news/news-slug/' prefix_def ... . index , name = 'index' ), path ( _ ( 'category/<slug:slug>/' ), news_views . category , name = 'categor ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
Generic display ビュー — Django 4.0.6 ドキュメント 8185
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... http_method_not_allowed() get_template_names() get_slug_field() get_queryset() get_object() get_context_ob ... import ArticleDetailView urlpatterns = [ path ( '<slug:slug>/' , ArticleDetailView . as_view (), name = ' ...
https://man.plustar.jp/django/ref/class-based-views/generic-display.html - [similar]
フォームとフィールドの検証 — Django 4.0.6 ドキュメント 8024
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... es inside the field, let's have a look at Django's SlugField : from django.core import validators from dja ... ngo.forms import CharField class SlugField ( CharField ): default_validators = [ validat ... ors . validate_slug ] As you can see, SlugField is a CharField with a ... les. This can also be done on field definition so: slug = forms . SlugField () これは以下と同じです: slug ...
https://man.plustar.jp/django/ref/forms/validation.html - [similar]
PREV 1 2 3 4 NEXT