revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.

Home Page:https://readthedocs.org/projects/django-health-check/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It doesn't work with Django 4.1

aleixmorgadas opened this issue · comments

Error:

# -*- coding: utf-8 -*-
    """
    URLs.
    """
>   from django.conf.urls import include, url
E   ImportError: cannot import name 'url' from 'django.conf.urls' (.../.venv/lib/python3.11/site-packages/django/conf/urls/__init__.py)

../../../.venv/lib/python3.11/site-packages/health_check/urls.py:5: ImportError

I saw the deprecation notice here. https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-0

What release are you using?
This package uses path from django.urls, see https://github.com/revsys/django-health-check/blob/3.17.0/health_check/urls.py

We are using 3.17.0 😕

I will take a closer look

@aleixmorgadas can this be closed?

Would you mind?