Skip to content

Django 4.0 compitability #347

Description

@miklagard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions