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.0.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for eit_django_utils-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd78ce442406a7185c67bb7b3951150d4f2e0593beaf64b5f55e46fb2392f305 |
|
MD5 | 4cd4bfc09967b08a3cf94272368f94b1 |
|
BLAKE2b-256 | 2cceb4c081c3c4038d41bfaa4b04499e8d357a26c6c59598c23597039ee565d2 |