# OpenLiteSpeed Django Generated on 26 Nov 2025 from [the OpenLiteSpeed Django catalog page](https://marketplace.digitalocean.com/apps/openlitespeed-django) The Django OpenLiteSpeed One-Click app automatically installs Linux, performance web server OpenLiteSpeed, Python LSAPI and ACME. OpenLiteSpeed features HTTP/3 support, and easy setup for SSL and RewriteRules. It’s flexible enough to host multiple Django apps, and supports many other apps including NodeJS, Ruby, and CMSs like WordPress. ## Software Included | Package | Version | License | |---|---|---| | Django | [5.2.9](https://docs.djangoproject.com/en/5.2/releases/) | [BSD](https://github.com/django/django/blob/master/LICENSE) | | Python LSAPI | [2.1](https://www.litespeedtech.com/open-source/litespeed-sapi/lsapi-release-log) | proprietary | | OpenLiteSpeed | [1.8.4](https://openlitespeed.org/release-log/) | [GPLv3](https://www.litespeedtech.com/open-source/openlitespeed) | | CertBot | [0.40.0](https://github.com/certbot/certbot/blob/master/CHANGELOG.md) | [Apache2](https://github.com/certbot/certbot/blob/master/LICENSE.txt) | ## Creating an App using the Control Panel Click the **Deploy to DigitalOcean** button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account. [![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/droplets/new?image=litespeedtechnol-openlitespeeddja-20-04) ## Creating an App using the API In addition to creating a Droplet from the OpenLiteSpeed Django 1-Click App using the control panel, you can also use the [DigitalOcean API](https://docs.digitalocean.com/reference/api). As an example, to create a 4GB OpenLiteSpeed Django Droplet in the SFO2 region, you can use the following `curl` command. You need to either save your [API access token](https://docs.digitalocean.com/reference/api/create-personal-access-token/index.html.md) to an environment variable or substitute it in the command below. ```shell curl -X POST -H 'Content-Type: application/json' \ -H 'Authorization: Bearer '$TOKEN'' -d \ '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"litespeedtechnol-openlitespeeddja-20-04"}' \ "https://api.digitalocean.com/v2/droplets" ``` ## Getting Started After Deploying OpenLiteSpeed Django From a terminal on your local computer, connect to the Droplet as root. Make sure to substitute the Droplet’s IP address. ``` ssh root@use_your_droplet_ip ``` An interactive script that runs will first prompt you for your domain or subdomain. You can press CTRL+C and continue to SSH. The prompt will open again the next time you log in, and will continue to do so until you finish the whole setup. ``` Please input a valid domain: Please verify it is correct. [y/N] ``` You can also automatically apply Let’s Encrypt SSL if your domain is pointed to this server already. Enter `y` and your email address to finish the process. ``` Do you wish to issue a Let's encrypt certificate for this domain? [y/N] Please enter your E-mail: Please verify it is correct: [y/N] ``` Once finished, you should see Certificate has been successfully installed… ``` Do you wish to force HTTPS rewrite rule for this domain? [y/N] ``` Enter `y` to force HTTPS rules to be applied ``` Do you wish to update the system which include the web server? [Y/n] ``` This script will automatically go away after your domain has been added. **DigitalOcean Managed Database** If you select to install a DigitalOcean Managed Database while creating this 1-click app, DigitalOcean handles the creation of the database cluster as well as the Droplet. The Droplet will have a **DATABASE\_URL** environment variable configured including a database connection string, such as: **postgresql://doadmin:@dbaas-db-11111-do-user-1111111-1.b.db.ondigitalocean.com:25060/defaultdb?sslmode=require** Your managed database configuration and credentials will be stored in **/root/.digitalocean\_dbaas\_credentials** ## For more support Please visit our [Quick Start page](https://docs.litespeedtech.com/cloud/django/#quick-start) for details on how to access your Django One Click and complete your configuration. Community Support: [![null](https://img.shields.io/badge/slack-LiteSpeed-blue.svg?logo=slack)](https://litespeedtech.com/slack/)