runner
dev_tool.services.django.runner
log = logging.getLogger(__name__)
module-attribute
DjangoServerRunner
A class for running a Django development server.
This class handles starting, monitoring, and stopping a Django server process.
The constructor for the DjangoServerRunner class.
Parameters:
-
socket_address(str) –The socket address for the Django server to bind to.
Source code in dev_tool/services/django/runner.py
socket_address = socket_address
instance-attribute
process = None
instance-attribute
output_thread = None
instance-attribute
stop_event = threading.Event()
instance-attribute
run
A method that starts and monitors the Django server.
Source code in dev_tool/services/django/runner.py
stop
A method that stops the Django server and cleans up resources.