djangosaml2 icon indicating copy to clipboard operation
djangosaml2 copied to clipboard

Django 4.0 compitability

Open miklagard opened this issue 3 years ago • 1 comments

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.

miklagard avatar Oct 06 '22 13:10 miklagard

It seems you're not using the latest version, which is compat with Django 4.0.x:

See #317

g-as avatar Oct 07 '22 07:10 g-as