We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
It seems you're not using the latest version, which is compat with Django 4.0.x:
See #317
Sorry, something went wrong.
No branches or pull requests
in views.py there is:
from django.utils.http import is_safe_url
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.
The text was updated successfully, but these errors were encountered: