mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
13 lines
410 B
Python
13 lines
410 B
Python
import sys
|
|
from django.apps import AppConfig
|
|
|
|
class TSProxyConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'apps.proxy.ts_proxy'
|
|
verbose_name = "TS Stream Proxies"
|
|
|
|
def ready(self):
|
|
"""Initialize proxy servers when Django starts"""
|
|
if 'manage.py' not in sys.argv:
|
|
from .server import ProxyServer
|
|
ProxyServer.get_instance()
|