django utils for eit
Project description
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.CustomHeaderMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', ... ] AUTHENTICATION_BACKENDS = ( 'eit_django_utils.backends.custom_auth.CustomRemoteUserBackend', ) LOCALDEV_SHIB_UID = 'desired_unity_id'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eit_django_utils-0.4.2.tar.gz
(12.8 kB
view hashes)
Built Distribution
Close
Hashes for eit_django_utils-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef4c0243817f965813a4e875dbbe6b5733ff958d1d3a9164e504364b6baab368 |
|
MD5 | 2d4a177498b33e5d0a1c4324876183ee |
|
BLAKE2b-256 | 2a806689a0d1b302361cf0c8d85598c07bb13e653f8ba562b464737a76ca3349 |