o
    QD©i«  ã                   @   sL   d dl mZ d dlmZ d dlZd dlmZ d dlmZ G dd„ deƒZ	dS )é    )Ú	AppConfig)ÚsettingsN)Ú SetupPrometheusExportsFromConfig)ÚExportMigrationsc                   @   s   e Zd Zej ZdZdd„ ZdS )ÚDjangoPrometheusConfigzDjango-Prometheusc                 C   s    t ƒ  ttddƒrtƒ  dS dS )a¡  Initializes the Prometheus exports if they are enabled in the config.

        Note that this is called even for other management commands
        than `runserver`. As such, it is possible to scrape the
        metrics of a running `manage.py test` or of another command,
        which shouldn't be done for real monitoring (since these jobs
        are usually short-lived), but can be useful for debugging.
        ÚPROMETHEUS_EXPORT_MIGRATIONSFN)r   Úgetattrr   r   )Úself© r
   úO/var/www/Datamplify/venv/lib/python3.10/site-packages/django_prometheus/apps.pyÚready   s   	
ÿzDjangoPrometheusConfig.readyN)Ú__name__Ú
__module__Ú__qualname__Údjango_prometheusÚnameÚverbose_namer   r
   r
   r
   r   r   	   s    r   )
Údjango.appsr   Údjango.confr   r   Údjango_prometheus.exportsr   Údjango_prometheus.migrationsr   r   r
   r
   r
   r   Ú<module>   s    