It isn't news anymore that many shared host accounts best know for hosting PHP web frameworks now support python web frameworks.
In this post, I will show you how to deploy python django web framework on "NameCheap Shared Hosting" using cPanel.
Note: you can deploy django on any cpanel account that:-
1) Supports python apps and
2) Provides access to 'Terminal/Command-Line'
Step 1:
I am going to use an existing namecheap account (domain and hosting). If you don’t have account yet, signup for one.
Step 2:
Login to you cpanel and create a 'subdomain'. Mine is at: https://django1.umaryusuf.com as seen below
At this point, when you load the URL it should display this…
Step 3: Setup Python App
Click on the python icon that says “Setup Python App” (it should be under ‘Software’ tab as seen below).
Click create button that says “Create Application”
Fill the form as seen below… and click on ‘Create’ button.
You should see a screen that look like this below, with a command to enter the virtual environment. Copy the path (source /home/xxx/virtualenv/django1/3.7/bin/activate && cd /home/xxx/django1), you will use it in the next step.
If you checked your “File Manager”, you should see these two folders created from the names you entered above.
In this post, I will show you how to deploy python django web framework on "NameCheap Shared Hosting" using cPanel.
Django Project is a collection of Apps. A project most have at least one app.
Note: you can deploy django on any cpanel account that:-
1) Supports python apps and
2) Provides access to 'Terminal/Command-Line'
Step 1:
I am going to use an existing namecheap account (domain and hosting). If you don’t have account yet, signup for one.
Step 2:
Login to you cpanel and create a 'subdomain'. Mine is at: https://django1.umaryusuf.com as seen below
At this point, when you load the URL it should display this…
Click on the python icon that says “Setup Python App” (it should be under ‘Software’ tab as seen below).
Click create button that says “Create Application”
Fill the form as seen below… and click on ‘Create’ button.
You should see a screen that look like this below, with a command to enter the virtual environment. Copy the path (source /home/xxx/virtualenv/django1/3.7/bin/activate && cd /home/xxx/django1), you will use it in the next step.