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

Health Check installed apps breaks Jazzmin

Archmonger opened this issue · comments

When health_check is added as an installed app, Django will revert to the classic admin interface instead of Jazzmin.

It appears that some of the health check imports prematurely loads the admin library.

Need to investigate db, cache, storage, and migrations libraries to track down root cause.

# Jazzmin is NOT used
{
            "jazzmin",
            "django.contrib.admin",
            "django.contrib.admindocs",
            "health_check",
            ... ,
}

# Jazzmin is NOT used
{
            "health_check",
            ... ,
            "jazzmin",
            "django.contrib.admin",
            "django.contrib.admindocs",
}

# Django periodically boots up and uses the Jazzmin. Roughly 50/50 occurrence. 
{
            "jazzmin",
            "health_check",
            ... ,
            "django.contrib.admin",
            "django.contrib.admindocs",
}
# NOTE:  Where `health_check` is used, the following is also used...
{
            "health_check.db",
            "health_check.cache",
            "health_check.storage",
            "health_check.contrib.migrations",
            "health_check.contrib.psutil",
}

Debugged and determined issue to not be related to Django Health Check, closing this ticket.