File: apps.py

package info (click to toggle)
python-django-etcd-settings 0.1.13%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320 kB
  • sloc: python: 925; makefile: 210
file content (11 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
from django.apps import AppConfig
from etcd_settings.proxy import proxy


class EtcdMonitor(AppConfig):

    name = 'etcd_settings'
    verbose_name = 'EtcdMonitor starting the threads for long polling'

    def ready(self):
        proxy.start_monitors()