Configure Django on OpenLiteSpeed
Hawk Host offers an OpenLiteSpeed Django cloud vps image that streamlines Django deployment.
-
When completing your cloud vps setup, select OpenLiteSpeed Django from the operating system template list.
-
Once the server is built, log in via SSH or VNC. You will be guided through a series of prompts to configure your Django site.
-
After completing the prompts, Django will be immediately installed and ready for use.
After the prompts are completed, you can access your Django site at http://your-server-ip/. Your Django files will be stored in /usr/local/lsws/Example/html/. The demo structure is as follows:
Directorydemo
Directorydemo
- setting.py
- urls.py
- wsgi.py
- __init__.py
- manage.py
Directorypublic
- static
- db.sqlite3
- app
- stderr.log
You can access the virtual environment using:
source /usr/local/lsws/Example/html/venv/bin/activate