Skip to main content

Convenient utils for EIT Django dev

Documentation

Quickstart

Install EIT Django Utils:

pip install eit_django_utils

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django-hijack',
    'eit_django_utils',
    ...
)

Add EIT Django Utils’s URL patterns:

from eit_django_utils import urls as eit_django_utils_urls


urlpatterns = [
    ...
    path("eit_utils/", include(eit_django_utils_urls, namespace="eit_django_utils")),
    ...
]

Using with Django 2.2+ settings.py:

MIDDLEWARE = [
  ...
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  # SetLocalDevShibUID is only for local development!
  'eit_django_utils.backends.custom_auth.SetLocalDevShibUID',
  'eit_django_utils.backends.custom_auth.CustomHijackMiddleware',
  'eit_django_utils.backends.custom_auth.ShibAffiliationRequiredMiddleware',
  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  ...
]

AUTHENTICATION_BACKENDS = (
'eit_django_utils.backends.custom_auth.CustomRemoteUserBackend',
)

LOCALDEV_SHIB_UID = 'desired_unity_id'

Metadata

Release files for eit_django_utils 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eit_django_utils 0.4.4
File Size Uploaded
eit_django_utils-0.4.4.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eit_django_utils 0.4.4
File Interpreter ABI Platform
eit_django_utils-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 24.3 kB

Release files / eit_django_utils-0.4.4.tar.gz

Download URL eit_django_utils-0.4.4.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3aff54c1f021c98d0922b2dc04629d3c3303e18f0f8e9b1cc3bd58b814a9fd2d
BLAKE2b-256 checksum
How to use checksums
de099459b3aaf25eb7a6827a2bed04543db3512309ea8e51dff8d8d54e61ae64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / eit_django_utils-0.4.4-py3-none-any.whl

Download URL eit_django_utils-0.4.4-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6aa16ed886396bec85745b781305fe2befce1cdfcc9b96f56bcabeb80d53938
BLAKE2b-256 checksum
How to use checksums
2bb9e4c85086fa90da928a95fe11d73dc4e7d32fe8dc70f80d79036a32a495d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page