runner
dev_tool.services.django.runner
ServerRunner
Bases: Protocol
A protocol for server runners.
run
DjangoServerRunner
Bases: BaseProcessRunner
A class for running a Django development server.
This class handles starting, monitoring, and stopping a Django server process in both local and containerized environments.
The constructor for the DjangoServerRunner class.
Parameters:
-
project_name(str) –The project name for container naming.
-
ip_address(str) –The IP address to bind to.
-
port(int) –The port number to bind to.