haha
This commit is contained in:
@@ -8,8 +8,15 @@ from __future__ import annotations
|
|||||||
import argparse
|
import argparse
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "server.settings")
|
||||||
|
|
||||||
|
import django # noqa: E402
|
||||||
|
|
||||||
|
django.setup() # noqa: E402
|
||||||
|
|
||||||
from worker import config
|
from worker import config
|
||||||
from worker.tasks.registry import register_all_handlers
|
from worker.tasks.registry import register_all_handlers
|
||||||
from worker.ws_client import WorkerWSClient
|
from worker.ws_client import WorkerWSClient
|
||||||
|
|||||||
Reference in New Issue
Block a user