djangosaml2
djangosaml2 copied to clipboard
Django 4.0 compitability
in views.py there is:
from django.utils.http import is_safe_url
ImportError: cannot import name 'is_safe_url' from 'django.utils.http'
is_safe_url is outdates in django 4.0. it should be something like: from django.utils.http import url_has_allowed_host_and_scheme as is_safe_url
once again, there is: from django.conf.urls import url
in newer django versions, there is no url but from django.urls import path.
It seems you're not using the latest version, which is compat with Django 4.0.x:
See #317