Python Version: 3.6.1
Django Version : 1.10.2
So recently I migrated to the Bluehost VPS. Why Bluehost you may ask ? The price and they are django friendly. They don't provide up to date versions of Python though so you have to install it yourself in your home directory. Apart from that they are about as "Django Friendly" as any other shared host.
One thing I can say is you really get good value for money with them and a huge amount of storage.
Excellent decision but what made it a little hectic was now configuring so I decided to write this post to help out on setting up django.
One friendly reminder- make sure you have your versions on lockdown. I am compiling the current latest version
1. SSH
Although the whole world seems to support PUTTY. I feel Teraterm does the job for me (Maybe its me but PUTTY doesn't support SSH2?) Anyways, if you are to use windows. Linux and Mac are straight forward. So without further ado, login into your VPS server.
2. Make a source Directory
3. Getting Python
I am working with python 3.6 but you can get a later version follow this link to python ftp folder.
Then you open the relevant folder and copy link.
After running the above commands, your python must now be working perfectly. Now you need to set the environment variable to point to your Python directory. As shown. Now when you type in python3.6 from anywhere in the directory- you will now see the old familiar IDLE.
4. Install pip and setup tools
Now get the latest version of pip here. Get the link. (Make sure you select the .tar.gz link! Similar procedure as above :)). Let me just post my resultant code.
Now you will have django installed onto your server ! Congrats!
If you have any issues or updates do tell. Just that I went through a bit of a tough time using outdated files procedures etc.
Django Version : 1.10.2
So recently I migrated to the Bluehost VPS. Why Bluehost you may ask ? The price and they are django friendly. They don't provide up to date versions of Python though so you have to install it yourself in your home directory. Apart from that they are about as "Django Friendly" as any other shared host.
One thing I can say is you really get good value for money with them and a huge amount of storage.
Excellent decision but what made it a little hectic was now configuring so I decided to write this post to help out on setting up django.
One friendly reminder- make sure you have your versions on lockdown. I am compiling the current latest version
1. SSH
Although the whole world seems to support PUTTY. I feel Teraterm does the job for me (Maybe its me but PUTTY doesn't support SSH2?) Anyways, if you are to use windows. Linux and Mac are straight forward. So without further ado, login into your VPS server.
2. Make a source Directory
3. Getting Python
I am working with python 3.6 but you can get a later version follow this link to python ftp folder.
Then you open the relevant folder and copy link.
After running the above commands, your python must now be working perfectly. Now you need to set the environment variable to point to your Python directory. As shown. Now when you type in python3.6 from anywhere in the directory- you will now see the old familiar IDLE.
4. Install pip and setup tools
Now get the latest version of pip here. Get the link. (Make sure you select the .tar.gz link! Similar procedure as above :)). Let me just post my resultant code.
Now you will have django installed onto your server ! Congrats!
If you have any issues or updates do tell. Just that I went through a bit of a tough time using outdated files procedures etc.
Comments
Post a Comment