per page, with , order by , clip by
Results of 1 - 10 of about 19 for authenticated (0.011 sec.)
Djangoの認証システムを使用する 13916
Djangoの認証システムを使用する このドキュメントでは、デフォルト設定でのDjangoの認証システムの使用方法を説明します。この設定は、タスクの適切な範囲を管理することで、最も一般的なプロジェクトのニーズにかなうよう徐々に発展してきました。そして、パ ... auth import authenticate user = authenticate ( username = "john" , password = "secret" ) if user is not None : # A backend authenticated the credentials ... else : # No backend authenticated the credentials ... request はオプションで、 HttpRequest のインスタン ... 場合、この属性には AnonymousUser のインスタンスが、ログインしている場合は User のインスタンスがセットされます。 両者は、 is_authenticated を用いて次のように識別できます。 if request . user . is_authenticated : # Do something for authenticated users. ... else : ... # Do something for anonymous users. ... 非同期ビューでは次のようになります。 user = await request . auser () if user . is_authenticated : # Do something for authenticated users. ... else : # Do something for anonymous users. ... ユーザーをログインさせる方法 ...
https://man.mtool.work/django/6.1/topics/auth/default.html
Django 1.10 リリースノート 11986
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... he redirect of the django.contrib.auth.views.logout() view, if the view doesn't get a next_page argument. The new redirect_authenticated_user parameter for the django.contrib.auth.views.login() view allows redirecting authenticated users visiting the login pa ... te. Middleware classes are now initialized when the server starts rather than during the first request. If you override is_authenticated() or is_anonymous() in a custom user model, you must convert them to attributes or properties as described in the deprecat ... hs , rhs ), params models . CharField . register_lookup ( Search ) models . TextField . register_lookup ( Search ) User.is_authenticated() と User.is_anonymous() をメソッドをして使う AbstractBaseUser と AnonymousUser クラスの is_authenticated() と is_anonymou ...
https://man.mtool.work/django/6.1/releases/1.10.html
django.contrib.auth 9545
django.contrib.auth このドキュメントでは、Django の 認証システムのコンポーネントの API リファレンス資料を提供しています。 これらのコンポーネントの使い方や、認証と認可をカスタマイズする方法の詳細は、 認証トピックガイド を参照してください。 U ... ます。 last_login ユーザーが最後にログインした日時です。 date_joined アカウントが作成された日時。 属性 class models. User is_authenticated ( AnonymousUser.is_authenticated が常に False なのとは対照的に) 常に True の読み取り専用属性です。ユーザが認証済みかどうか ... nymous 常に False の読み取り専用属性です。 User オブジェクトと AnonymousUser オブジェクトを区別する方法です。一般的に、 is_authenticated を使う方が好ましいと言えます。 メソッド class models. User get_username () ユーザのユーザ名を返します。 User モデルはスワッ ... username が常に空の文字列です。 get_username() が常に空の文字列を返します。 is_anonymous が False ではなく True です。 is_authenticated が False ではなく True です。 is_staff と is_superuser が常に False です。 is_active が常に False です。 groups と user_pe ...
https://man.mtool.work/django/6.1/ref/contrib/auth.html
Django 1.10.1 リリースノート 9066
Django 1.10.1 リリースノート September 1, 2016 Django 1.10.1 fixes several bugs in 1.10. バグ修正 Fixed a crash in MySQL connections where SELECT @@SQL_AUTO_IS_NULL doesn't return a result ( #26991 ). Allowed User.is_authenticated and User. ...
https://man.mtool.work/django/6.1/releases/1.10.1.html
Django 1.10.3 リリースノート 9066
Django 1.10.3 リリースノート November 1, 2016 Django 1.10.3 fixes two security issues and several bugs in 1.10.2. User with hardcoded password created when running tests on Oracle When running tests with an Oracle database, Django creates a ... file has your production ALLOWED_HOSTS value, you must now omit it to get those fallback values. バグ修正 Allowed User.is_authenticated and User.is_anonymous properties to be tested for set membership ( #27309 ). Fixed a performance regression when running m ...
https://man.mtool.work/django/6.1/releases/1.10.3.html
クラスベースのビューでミックスイン (mixin) を使用する 8827
クラスベースのビューでミックスイン (mixin) を使用する 注意 This is an advanced topic. A working knowledge of Django's class-based views is advised before exploring these techniques. Django のビルトインのクラスベースビューではたくさんの機能が ... er's interest in an author.""" model = Author def post ( self , request , * args , ** kwargs ): if not request . user . is_authenticated : return HttpResponseForbidden () # Look up the author we're interested in. self . object = self . get_object () # Actuall ... il" , kwargs = { "pk" : self . object . pk }) def post ( self , request , * args , ** kwargs ): if not request . user . is_authenticated : return HttpResponseForbidden () self . object = self . get_object () form = self . get_form () if form . is_valid (): re ... orm_class = AuthorInterestForm model = Author def post ( self , request , * args , ** kwargs ): if not request . user . is_authenticated : return HttpResponseForbidden () self . object = self . get_object () return super () . post ( request , * args , ** kwar ...
https://man.mtool.work/django/6.1/topics/class-based-views/mixins.html
エラーレポートの管理 8571
エラーレポートの管理 サイトを公開している場合、 DEBUG 設定は常にオフにしておかなければなりません。これにより、サーバー動作は高速になり、エラーページによって明らかになるアプリケーションの詳細が悪意あるユーザーに漏れるのを防ぎます。 しかし、 ... 性を指定することで、任意のビューで使用するフィルタをより細かく制御できます: def my_view ( request ): if request . user . is_authenticated : request . exception_reporter_filter = CustomExceptionReporterFilter () ... カスタムフィルタクラスは django.views.debug.S ... を指定することで、任意のビューで使用する例外レポータークラスを制御できます: def my_view ( request ): if request . user . is_authenticated : request . exception_reporter_class = CustomExceptionReporter () ... 参考 また、独自の 例外ミドルウェア を書くことで、独自 ...
https://man.mtool.work/django/6.1/howto/error-reporting.html
REMOTE_USER で認証する 8332
REMOTE_USER で認証する This document describes how to make use of external authentication sources in your Django applications. This type of authentication solution is typically seen on intranet sites, with single sign-on solutions such as I ... hnz_ldap , CAS , WebAuth , mod_auth_sspi , etc. When the web server takes care of authentication it typically provides the authenticated user as REMOTE_USER . In Django, this value is made available in request.META (as REMOTE_USER when supplied as an environm ...
https://man.mtool.work/django/6.1/howto/auth-remote-user.html
Django の認証方法のカスタマイズ 8332
Django の認証方法のカスタマイズ Django がデフォルトで提供する認証機能は、ほとんどの一般的なケースでは十分なものですが、デフォルトではニーズにマッチしない場合もあると思います。自分のプロジェクトで認証のカスタマイズを行うためには、Django が提 ... 異なる Unicode の符号位置を持つ文字について、それらが同一とみなされるように、username に NFKC Unicode正規化を適用します。 is_authenticated ( AnonymousUser.is_authenticated が常に False なのとは対照的に) 常に True の読み取り専用属性です。ユーザが認証済みかどうか ... nymous 常に False の読み取り専用属性です。 User オブジェクトと AnonymousUser オブジェクトを区別する方法です。一般的に、 is_authenticated を使う方が好ましいと言えます。 set_password ( raw_password ) 指定された生の文字列に、ユーザのパスワードをセットし、パスワー ...
https://man.mtool.work/django/6.1/topics/auth/customizing.html
Django 1.2 リリースノート 8093
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... Forgery (CSRF). A new user "messages" framework with support for cookie- and session-based message for both anonymous and authenticated users. Hooks for object-level permissions , permissions for anonymous users , and more flexible username requirements . Cu ... and configurable messages framework with built-in support for cookie- and session-based messaging, for both anonymous and authenticated clients. The messages framework replaces the deprecated user message API and allows you to temporarily store messages in o ...
https://man.mtool.work/django/6.1/releases/1.2.html
PREV 1 2 NEXT