Results of 151 - 160 of about 231 for import (0.041 sec.)
- Djangoにおけるパスワード管理 — Django 4.0.6 ドキュメント 4524
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
2PasswordHasher : from django.contrib.auth.hashers import PBKDF2PasswordHasher class MyPBKDF2PasswordHasher ...
unts/hashers.py ¶ from django.contrib.auth.hashers import ( PBKDF2PasswordHasher , SHA1PasswordHasher , ) cl ...
ns/0002_migrate_sha1_passwords.py ¶ from django.db import migrations from ..hashers import PBKDF2WrappedSHA1 ...
one optional setting: from django.core.exceptions import ValidationError from django.utils.translation impo ...
-
https://man.plustar.jp/django/topics/auth/passwords.html
- [similar]
- フォームアセット (Media クラス) — Django 4.0.6 ドキュメント 4524
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ものを定義します。 以下に例を示します。 from django import forms class CalendarWidget ( forms . TextInput ): ...
で STATIC_URL が None だった場合: >>> from django import forms >>> class CalendarWidget ( forms . TextInput ...
含む Media オブジェクトを生成します: >>> from django import forms >>> class CalendarWidget ( forms . TextInput ...
内で定義された順序を保持します。 例: >>> from django import forms >>> class CalendarWidget ( forms . TextInput ...
-
https://man.plustar.jp/django/topics/forms/media.html
- [similar]
- django.core.checks.messages — Django 4.0.6 ドキュメント 4493
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
j" , "id" ] ) def __str__ ( self ): from django.db import models if self . obj is None : obj = "?" elif isin ...
= level def is_silenced ( self ): from django.conf import settings return self . id in settings . SILENCED_S ...
-
https://man.plustar.jp/django/_modules/django/core/checks/messages.html
- [similar]
- How to deploy with ASGI — Django 4.0.6 ドキュメント 4493
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
SGI server loads your application, Django needs to import the settings module — that's where your entire app ...
asgi.py file. For example: from some_asgi_library import AmazingMiddleware application = AmazingMiddleware ...
-
https://man.plustar.jp/django/howto/deployment/asgi/index.html
- [similar]
- フォーム API — Django 4.0.6 ドキュメント 4493
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
されていますが、後者が優先されます: >>> from django import forms >>> class CommentForm ( forms . Form ): ... ...
can change (e.g. datetime.now or uuid.uuid4 ): >>> import uuid >>> class UUIDCommentForm ( CommentForm ): .. ...
値を伴ってインクルードされています: >>> from django import forms >>> class OptionalPersonForm ( forms . Form ...
required_css_class 属性をセットします: from django import forms class ContactForm ( forms . Form ): error_cs ...
-
https://man.plustar.jp/django/ref/forms/api.html
- [similar]
- Django 3.2 release notes — Django 4.0.6 ドキュメント 4493
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
configure it on a per-app basis: from django.apps import AppConfig class MyAppConfig ( AppConfig ): default ...
= 'my_app' or on a per-model basis: from django.db import models class MyModel ( models . Model ): id = mode ...
nd database functions. For example: from django.db import models from django.db.models import F , Index , Va ...
lue from django.db.models.functions import Lower , Upper class MyModel ( models . Model ): fi ...
-
https://man.plustar.jp/django/releases/3.2.html
- [similar]
- django.contrib.messages.api — Django 4.0.6 ドキュメント 4452
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
es.api のソースコード from django.contrib.messages import constants from django.contrib.messages.storage imp ...
-
https://man.plustar.jp/django/_modules/django/contrib/messages/api.html
- [similar]
- django-admin と manage.py — Django 4.0.6 ドキュメント 4452
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
raise an exception: from django.db.models.signals import post_save from .models import MyModel def my_handl ...
ecorator to encapsulate this logic: from functools import wraps def disable_for_loaddata ( signal_handler ): ...
jango, like so: django - admin shell -- command = "import django; print(django.__version__)" You can also pa ...
cute it. For example: $ django-admin shell <<EOF > import django > print(django.__version__) > EOF On Window ...
-
https://man.plustar.jp/django/ref/django-admin.html
- [similar]
- Model Meta options — Django 4.0.6 ドキュメント 4452
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
of answers matters, you'd do this: from django.db import models class Question ( models . Model ): text = m ...
トしたい場合、これを使います: from django.db.models import F ordering = [ F ( 'author' ) . asc ( nulls_last = ...
at you want to define on the model: from django.db import models class Customer ( models . Model ): first_na ...
at you want to define on the model: from django.db import models class Customer ( models . Model ): age = mo ...
-
https://man.plustar.jp/django/ref/models/options.html
- [similar]
- TemplateResponse and SimpleTemplateResponse — Django 4.0.6 ドキュメント 4452
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
TemplateResponse >>> from django.template.response import TemplateResponse >>> t = TemplateResponse ( reques ...
e template response: from django.template.response import TemplateResponse def my_render_callback ( response ...
ntaining a queryset: from django.template.response import TemplateResponse def blog_index ( request ): retur ...
-
https://man.plustar.jp/django/ref/template-response.html
- [similar]