Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:other-ext-apps:django-web-framework-with-gunicornn [2017/08/30 12:10]
Usman Nasir [Step 3: Setup Gunicorn!]
litespeed_wiki:other-ext-apps:django-web-framework-with-gunicornn [2017/08/30 18:41] (current)
Usman Nasir [Step 6: Static Content!]
Line 3: Line 3:
 On a shared hosting environment with cPanel/WHM installed, we can use Litespeed Enterprise to host Django app on per account basis by proxying content to gunicorn. On a shared hosting environment with cPanel/WHM installed, we can use Litespeed Enterprise to host Django app on per account basis by proxying content to gunicorn.
  
-==== Requirments ==== 
- 
-  * You must have a server with cPanel/WHM installed. 
-  * One live domain. 
-  * Litespeed Enterprise installed on top of WHM. 
  
 ====== Step 1: Create Django Project ====== ====== Step 1: Create Django Project ======
Line 173: Line 168:
 </​code>​ </​code>​
  
-This will create a new folder ''​static''​ under ''/​home/​litespeed/​public_html/​djangoproject'',​ we can either use rewrite rules to move all requests for static content to this location or we can move this folder to the parent folder where Litespeed will actually look for the static ​file ''/​home/​litespeed/​public_html''​+This will create a new folder ''​static''​ under ''/​home/​litespeed/​public_html/​djangoproject'',​ we can either use rewrite rules to move all requests for static content to this location or we can move this folder to the parent folder where Litespeed will actually look for the static ​files at ''/​home/​litespeed/​public_html''​
  
 <​code>​ <​code>​
Line 179: Line 174:
 </​code>​ </​code>​
  
-This will move folder ''​static''​ to its parent folder, and litespeed ​can now easily serve static content. That's all you can now visit your domain and it should start service ​your Django project.+This will move folder ''​static''​ to its parent folder, and LiteSpeed ​can now easily serve static content. That's allyou can now visit your domain and it should start serving ​your Django project.
  • Admin
  • Last modified: 2017/08/30 12:10
  • by Usman Nasir