Help Center/ CodeArts Deploy/ User Guide/ Creating and Deploying an Application Using a Preset Template/ Creating and Deploying an Application Using the Django Template
Updated on 2026-01-21 GMT+08:00

Creating and Deploying an Application Using the Django Template

The template is not supported in Python 3.10 or later versions.

Deploy a Django Python background application on the host and start the service.

  • You have installed Nginx on the target host. If Nginx has been installed, remove the Install Nginx action from the template.
  • You have installed uWSGI on the target host. If uWSGI has been installed, remove the Install uWSGI action from the template.
  • You have configured the pip and yum sources. yum and pip are used to install software. The corresponding source addresses are configured to ensure normal installation.
  • You have created a Django project and uploaded the project files to Artifact. You can use CodeArts Build to compress the Django project files and upload the package to Artifact. Then, download and decompress the package during the deployment.
  1. In the template selection step, select this system template by referring to Creating an Application Using a System Template.

    The related deployment actions are as follows:

  2. On the Deployment Actions page, configure the following actions. For details about the parameters, see below.

  3. Table 1 describes the parameters to be set in the template.

    Table 1 Template parameters

    Parameter

    Description

    host_group

    Target environment where the application is deployed.

    service_port

    Port number of a Django application. The default value is 8080.

    uwsgi_pid_file_path

    Path of the uWSGI process ID file.

    uwsgi_lni_file_path

    Path of the uWSGI configuration file.

    package_path

    Path for downloading the Django application release package to the target host.

    package_name

    Name of the Django application release package downloaded to the target host.

    package_url

    Software package download link. To obtain it, go to the Artifact > Release Repos page.