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.
- 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:

- On the Deployment Actions page, configure the following actions. For details about the parameters, see below.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot