mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
13 lines
414 B
Python
13 lines
414 B
Python
import sys
|
|
from django.apps import AppConfig
|
|
|
|
class LiveProxyConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'apps.proxy.live_proxy'
|
|
verbose_name = "Live Stream Proxy"
|
|
|
|
def ready(self):
|
|
"""Initialize proxy servers when Django starts"""
|
|
if 'manage.py' not in sys.argv:
|
|
from .server import ProxyServer
|
|
ProxyServer.get_instance()
|