f56b088643
Base Image Build / prepare (push) Has been cancelled
Build and Push Multi-Arch Docker Image / build-and-push (push) Has been cancelled
Frontend Tests / test (push) Has been cancelled
Base Image Build / docker (amd64, ubuntu-24.04) (push) Has been cancelled
Base Image Build / docker (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Base Image Build / create-manifest (push) Has been cancelled
14 lines
410 B
Python
14 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()
|