معرفی شرکت ها


dbca-utils-1.1.6


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Utilities for Django/Python apps
ویژگی مقدار
سیستم عامل -
نام فایل dbca-utils-1.1.6
نام dbca-utils
نسخه کتابخانه 1.1.6
نگهدارنده ['Department of Biodiversity, Conservation and Attractions']
ایمیل نگهدارنده ['asi@dbca.wa.gov.au']
نویسنده Department of Biodiversity, Conservation and Attractions
ایمیل نویسنده asi@dbca.wa.gov.au
آدرس صفحه اصلی https://github.com/dbca-wa/dbca-utils
آدرس اینترنتی https://pypi.org/project/dbca-utils/
مجوز Apache License, Version 2.0
DBCA utility functions mainly related to Django SSO authentication middleware. ## SSO Login Middleware This will automatically login and create users using headers from an upstream proxy (REMOTE_USER and some others). The logout view will redirect to a separate logout page which clears the SSO session. Install with pip, then add the following to ``settings.py`` (note middleware must come after session and contrib.auth). Also note that the auth backend *django.contrib.auth.backends.ModelBackend* is in AUTHENTICATION_BACKENDS as this middleware depends on it for retrieving the logged in user for a session (will still work without it, but will reauthenticate the session on every request, and request.user.is_authenticated won't work properly/will be false). ``` MIDDLEWARE = [ ..., 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'dbca_utils.middleware.SSOLoginMiddleware' ] ``` ## Audit model mixin and middleware ``AuditMixin`` is an extension of ``Django.db.model.Model`` that adds a number of additional fields: * creator - FK to ``AUTH_USER_MODEL``, used to record the object creator * modifier - FK to ``AUTH_USER_MODEL``, used to record who the object was last modified by * created - a timestamp that is set on initial object save * modified - an auto-updating timestamp (on each object save) ``AuditMiddleware`` is a middleware that will process any request for an object having a ``creator`` or ``modifier`` field, and automatically set those to the request user via a ``pre_save`` signal.


نحوه نصب


نصب پکیج whl dbca-utils-1.1.6:

    pip install dbca-utils-1.1.6.whl


نصب پکیج tar.gz dbca-utils-1.1.6:

    pip install dbca-utils-1.1.6.tar.gz