per page, with , order by , clip by
Results of 1 - 10 of about 72 for login (0.005 sec.)
Djangoの認証システムを使用する 16201
Djangoの認証システムを使用する このドキュメントでは、デフォルト設定でのDjangoの認証システムの使用方法を説明します。この設定は、タスクの適切な範囲を管理することで、最も一般的なプロジェクトのニーズにかなうよう徐々に発展してきました。そして、パ ... システムを書くのでなければ、おそらくこれを使うことはないでしょう。むしろ、ユーザーにログインする方法を探しているのであれば、 LoginView を使ってください。 権限と認可 Django には組み込みのパーミッションシステムがあります。特定のユーザやユーザグループにパー ... # Do something for anonymous users. ... ユーザーをログインさせる方法 現在のセッションに接続したい認証ユーザーがいる場合、 login() 関数を使用できます。 login ( request , user , backend = None ) [ソース] alogin ( request , user , backend = None ) 非同期 ... バージョン : alogin() To log a user in, from a view, use login() . It takes an HttpRequest object and a User object. login() saves the user's ...
https://man.mtool.work/django/6.1/topics/auth/default.html
テストツール 10497
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... 作り、次のようにウェブページを取得します。 >>> from django.test import Client >>> c = Client () >>> response = c . post ( "/login/" , { "username" : "john" , "password" : "smith" }) >>> response . status_code 200 >>> response = c . get ( "/customer/det ... には、ドメイン全体ではなく、URL の path だけを指定することを覚えておいてください。たとえば、次は正しいです。 >>> c . get ( "/login/" ) しかし、これは間違いです。 >>> c . get ( "https://www.example.com/login/" ) テストクライアントには、自分の Django プロ ... ショナリ内の key-value ペアは、POST データを送信するのに使われます。例えば、次の例では、 >>> c = Client () >>> c . post ( "/login/" , { "name" : "fred" , "passwd" : "secret" }) 引数の評価の結果、次の URL へ POST リクエストが行われます。 /login/ リクエス ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
ミドルウェア 9824
ミドルウェア このドキュメントでは、Djangoに付属するすべてのミドルウェアコンポーネントについて説明します。それらの使用方法や独自のミドルウェアの作成方法についての情報は、 ミドルウェア使用ガイド を参照してください。 使用できる middleware Cach ... に対して、現在ログインしているユーザーを表す user 属性を追加します。 ウェブリクエストにおける認証 を参照してください。 class LoginRequiredMiddleware [ソース] ミドルウェアをサブクラス化し、以下の属性やメソッドをオーバーライドすることで、認証されていないリ ... クエストに対する動作をカスタマイズできます。 redirect_field_name デフォルトは "next" です。 get_login_url () [ソース] 認証されていないリクエストがリダイレクトされる URL を返します。この結果は、 login_required() デコレーターで ... 設定された login_url``(もし ``None でない場合)か、または settings.LOGIN_URL になります。 get_redirect_field_name () [ソース] ログインが成 ...
https://man.mtool.work/django/6.1/ref/middleware.html
Django 1.11.10 リリースノート 9291
Django 1.11.10 リリースノート 2018年2月1日 Django 1.11.10 では、1.11.9 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-6188: AuthenticationForm における情報漏えい A regression in Django 1.11.8 made AuthenticationF ... orm run its confirm_login_allowed() method even if an incorrect password is entered. This can leak information about a user, depending on what messa ... ges confirm_login_allowed() raises. If confirm_login_allowed() isn't overridden, an attacker enter an arbitrary username and see if that use ... r has been set to is_active=False . If confirm_login_allowed() is overridden, more sensitive details could be leaked. This issue is fixed with the caveat that AuthenticationFo ...
https://man.mtool.work/django/6.1/releases/1.11.10.html
Django 2.0.2 リリースノート 8997
Django 2.0.2 リリースノート 2018年2月1日 Django 2.0.2 では、2.0.1 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-6188: AuthenticationForm における情報漏えい A regression in Django 1.11.8 made AuthenticationForm r ... un its confirm_login_allowed() method even if an incorrect password is entered. This can leak information about a user, depending on what messa ... ges confirm_login_allowed() raises. If confirm_login_allowed() isn't overridden, an attacker enter an arbitrary username and see if that use ... r has been set to is_active=False . If confirm_login_allowed() is overridden, more sensitive details could be leaked. This issue is fixed with the caveat that AuthenticationFo ...
https://man.mtool.work/django/6.1/releases/2.0.2.html
Django 1.9.3 リリースノート 8703
Django 1.9.3 リリースノート March 1, 2016 Django 1.9.3 fixes two security issues and several bugs in 1.9.2. CVE-2016-2512: Malicious redirect and possible XSS attack via user-supplied redirect URLs containing basic auth Django relies on use ... r input in some cases (e.g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http ... es the security of the password as the speed of hardware increases, however, it also creates a timing difference between a login request for a user with a password encoded in an older number of iterations and login request for a nonexistent user (whic ... es from users who haven't logged in since the default hasher switched to PBKDF2 in Django 1.4), the timing difference on a login request for these users may be even greater and this fix doesn't remedy that difference (or any difference when changing h ...
https://man.mtool.work/django/6.1/releases/1.9.3.html
Django 1.8.10 リリースノート 8324
Django 1.8.10 リリースノート March 1, 2016 Django 1.8.10 fixes two security issues and several bugs in 1.8.9. CVE-2016-2512: Malicious redirect and possible XSS attack via user-supplied redirect URLs containing basic auth Django relies on u ... ser input in some cases (e.g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http ... es the security of the password as the speed of hardware increases, however, it also creates a timing difference between a login request for a user with a password encoded in an older number of iterations and login request for a nonexistent user (whic ... es from users who haven't logged in since the default hasher switched to PBKDF2 in Django 1.4), the timing difference on a login request for these users may be even greater and this fix doesn't remedy that difference (or any difference when changing h ...
https://man.mtool.work/django/6.1/releases/1.8.10.html
クラスベースビュー入門 8240
クラスベースビュー入門 クラスベースビューはビューを実装するもう一つの手段で、関数の代わりに Python のオブジェクトとしてビューを定義します。クラスベースビューは関数ベースのビューを完全に置き換えるものではありませんが、関数ベースのビューと比較 ... ートします。これが最も簡単にできる場所は、ビューをデプロイする URLconf の中です。 from django.contrib.auth.decorators import login_required , permission_required from django.views.generic import TemplateView from .views import VoteView urlpatterns = [ p ... ath ( "about/" , login_required ( TemplateView . as_view ( template_name = "secret.html" ))), path ( "vote/" , permission_required ( "polls.can_v ... メソッドのデコレーションに使えるようにできます。たとえば、次のように使用します。 from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.generic import TemplateView class Protecte ...
https://man.mtool.work/django/6.1/topics/class-based-views/intro.html
Porting your apps from Django 0.96 to 1.0 7876
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... fails to find the settings module and a RuntimeError when you try to reconfigure settings after having already used them. LOGIN_URL has moved The LOGIN_URL constant moved from django.contrib.auth into the settings module. Instead of using from django ... .contrib.auth import LOGIN_URL refer to settings.LOGIN_URL . APPEND_SLASH behavior has been updated In 0.96, if a URL didn't end in a slash or have a ... GenericForeignKey and GenericRelation -- have moved into the django.contrib.contenttypes module. テスト django.test.Client.login() has changed Old (0.96): from django.test import Client c = Client () c . login ( "/path/to/login" , "myuser" , "mypasswo ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.5 リリースノート 7722
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! 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.4 or older versions. We'v ... tch_size is unlimited except for SQLite where single batch is limited so that 999 parameters per query isn't exceeded. The LOGIN_URL and LOGIN_REDIRECT_URL settings now also accept view function names and named URL patterns . This allows you to reduce ... configuration duplication. More information can be found in the login_required() documentation. Django now provides a mod_wsgi auth handler . The QuerySet.delete() and Model.delete() can now t ... present pretty error pages to the user. django.contrib.auth provides a new signal that is emitted whenever a user fails to login successfully. See user_login_failed The new loaddata --ignorenonexistent option ignore data for fields that no longer exis ...
https://man.mtool.work/django/6.1/releases/1.5.html
PREV 1 2 3 4 5 6 7 8 NEXT