per page, with , order by , clip by
Results of 1 - 10 of about 22 for groups (0.008 sec.)
Django のユーザーデータベースに対する Apache からの認証 14174
Django のユーザーデータベースに対する Apache からの認証 Since keeping multiple authentication databases in sync is a common problem when dealing with Apache, you can configure Apache to authenticate against Django's authentication system di ... います。複数の Django アプリケーションを実行している場合は、この設定については mod_wsgi ドキュメントの Defining Application Groups セクションを参照してください。 mod_wsgiがインストールされ、有効になっていることと、 Apache と mod_wsgi をセットアップするス ... AuthType Basic AuthName "Top Secret" AuthBasicProvider wsgi WSGIAuthUserScript /path/to/mysite.com/mysite/wsgi.py WSGIAuthGroupScript /path/to/mysite.com/mysite/wsgi.py Require group secret-agents Require valid-user </Location> To support the WSGIAuth ... GroupScript directive, the same WSGI script mysite.wsgi must also import the groups_for_user function which returns a list of groups the given user belongs to. from django.contrib.auth.handlers.modwsgi impo ...
https://man.mtool.work/django/6.1/howto/deployment/wsgi/apache-auth.html
モデル _meta API 11918
モデル _meta API class Options [ソース] モデルの _meta API は、Django ORM のコアにあります。これにより、ルックアップ、クエリ、フォーム、admin などのシステムの他のパーツは、各モデルの機能を理解できるようになります。API は、各モデルクラスの _ ... Field: is_active>, <django.db.models.fields.DateTimeField: date_joined>, <django.db.models.fields.related.ManyToManyField: groups>, <django.db.models.fields.related.ManyToManyField: user_permissions>) # Also include hidden fields. >>> User . _meta . ge ... t_fields ( include_hidden = True ) (<ManyToOneRel: auth.user_groups>, <ManyToOneRel: auth.user_user_permissions>, <ManyToOneRel: admin.logentry>, <django.db.models.fields.AutoField: id>, <dj ... Field: is_active>, <django.db.models.fields.DateTimeField: date_joined>, <django.db.models.fields.related.ManyToManyField: groups>, <django.db.models.fields.related.ManyToManyField: user_permissions>) モデルの主キーを構成するフィールドを取得する Option ...
https://man.mtool.work/django/6.1/ref/models/meta.html
Django 3.0.1 リリースノート 9949
Django 3.0.1 リリースノート December 18, 2019 Django 3.0.1 では、セキュリティの問題1件と 3.0 におけるいくつかのバグを修正しました。 CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email addr ... .0 where RegexPattern , used by re_path() , returned positional arguments to be passed to the view when all optional named groups were missing ( #31061 ). Reallowed, following a regression in Django 3.0, Window expressions to be used in conditions outs ...
https://man.mtool.work/django/6.1/releases/3.0.1.html
URLconf で使用するための django.urls 関数 9679
URLconf で使用するための django.urls 関数 path() path ( route , view , kwargs = None , name = None ) urlpatterns に含める要素を返します。例えば: from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = ... contain sequences like \d without the need to escape the backslash with another backslash. When a match is made, captured groups from the regular expression are passed to the view -- as named arguments if the groups are named, and as positional argume ...
https://man.mtool.work/django/6.1/ref/urls.html
Djangoの認証システムを使用する 9107
Djangoの認証システムを使用する このドキュメントでは、デフォルト設定でのDjangoの認証システムの使用方法を説明します。この設定は、タスクの適切な範囲を管理することで、最も一般的なプロジェクトのニーズにかなうよう徐々に発展してきました。そして、パ ... 異なるオブジェクトインスタンスに対する権限をカスタマイズすることが可能です。 User オブジェクトは 2 つの多対多のフィールド、 groups および user_permissions を持っています。 User オブジェクトは、他の Django モデル と同様の方法で、関連を持っているオブジェク ... トにアクセスできます。 myuser . groups . set ([ group_list ]) myuser . groups . add ( group , group , ... ) myuser . groups . remove ( group , group , ... ) myus ... er . groups . clear () myuser . user_permissions . set ([ permission_list ]) myuser . user_permissions . add ( permission , permission ...
https://man.mtool.work/django/6.1/topics/auth/default.html
django.contrib.auth 8265
django.contrib.auth このドキュメントでは、Django の 認証システムのコンポーネントの API リファレンス資料を提供しています。 これらのコンポーネントの使い方や、認証と認可をカスタマイズする方法の詳細は、 認証トピックガイド を参照してください。 U ... は、パスワードが使用不可であることを示すことがあります。詳細については、 パスワードに関するドキュメント を参照してください。 groups Group への多対多のリレーションシップです。 user_permissions Permission への多対多のリレーションシップです。 is_staff 真偽値 ... is_authenticated が False ではなく True です。 is_staff と is_superuser が常に False です。 is_active が常に False です。 groups と user_permissions が常に空です。 set_password() 、 check_password() 、 save() 、 delete() が NotImplementedError を投げま ...
https://man.mtool.work/django/6.1/ref/contrib/auth.html
Django 1.4 リリースノート 8265
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... behavior is defined by the underlying backend implementation. Check their documentation for details. COMMENTS_BANNED_USERS_GROUP setting Django's comments has historically supported excluding the comments of a special user group, but we've never docume ... ) if getattr ( settings , "COMMENTS_BANNED_USERS_GROUP" , None ): where = [ "user_id NOT IN (SELECT user_id FROM auth_user_groups WHERE group_id = %s )" ] params = [ settings . COMMENTS_BANNED_USERS_GROUP ] qs = qs . extra ( where = where , params = pa ... y subclassing DjangoTestRunner and overriding its teardown_databases() method. Output of manage.py help manage.py help now groups available commands by application. If you depended on the output of this command -- if you parsed it, for example -- then ...
https://man.mtool.work/django/6.1/releases/1.4.html
アグリゲーション (集計) 8265
アグリゲーション (集計) Djangoのデータベース抽象API のトピックガイドでは、個別のオブジェクトの作成、取得、削除を行うDjangoのクエリの使い方を説明しました。しかし、オブジェクトのコレクションを 集計 (アグリゲーション) した値や、集計することによ ... es_per_author = F ( "greatest_pages" ) / F ( "num_authors" ), ... ) . aggregate ( Avg ( "pages_per_author" )) This creates groups of books based on the SQL column GREATEST(pages, 600) . One unique group consists of books with 600 pages or less, and oth ... er unique groups will consist of books with the same pages. The pages_per_author annotation is composed of aggregate and non-aggregate expr ...
https://man.mtool.work/django/6.1/topics/db/aggregation.html
Coding style 7979
Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re ... f order (to avoid a circular import, for example) use a comment like this: import module # isort:skip Put imports in these groups: future, standard library, third-party libraries, other Django components, local Django component, try/excepts. Sort lines ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 2.1 リリースノート 7979
Django 2.1 リリースノート 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能を ... er set ETags. The Model._meta.has_auto_field attribute is removed. url() 's support for inline flags in regular expression groups ( (?i) , (?L) , (?m) , (?s) , and (?u) ) is removed. Support for Widget.render() methods without the renderer argument is ...
https://man.mtool.work/django/6.1/releases/2.1.html
PREV 1 2 3 NEXT