Skip to main content

Django Hosting - Bluehost

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.

Comments

Popular posts from this blog

Gentlest introduction : The Cloud

How it began To me the concept of cloud started when people began virtualizing their systems using the like of Virtual-box and VMware. What bough this a;long was the evolution/advent of technology which made it possible for software so simulate hardware. Originally software could not simulate hardware drivers but the moment that became possible- virtualization was born. A few years after- companies started offering this virtualization at a much grander scale and Infrastructure as a service was born. Lets get down to the three cloud components namely: Infrastructure as a Service (IAAS) This outsourced hardware meaning that one noways noes not need to setup servers, air-con and the like of access control but could 'rent' from someone and one of the great things about this was that a backup not only meant software but also meant hardware (as software could now simulate hardware) so recovery in case of disaster became easier. Platform as a Service (PAAS) This is ...

Deploy Django app online for free!

So after a number of lines of code, brilliance and dreaming. Your next dream is for the world to see. Of course you can walk around with your computer and doing a 'manage.py runserver' But cumon guys, lets embrace the cloud. Not like this guy though! I choose to deploy on  PythonAnywhere . So you ask why? 1) Free amazing support - You actually talk to a live human ! 2) Easy - Very easy 3) Affordable - As you scale up, it gets way better! So by now I assume you are already on a version control system (So I will not waste much energy on that one). Maybe Ill someday write on my two favs  Github  and  Bitbucket . STEP 1: Create an account on pythonanywhere. Kindly note that your username will be included in your apps url. So it will be like : " yourUsername .pythonanywhere.com" STEP 2: Select other and set a bash console. STEP 3: Push your code from version control This will push from (in my example) github to your pythonanywhere. You...

Artificial Neural Networks - Intro for beginners

The perceptron Single node perceptron Perceptrons form the basis for ANNs. Perceptron takes input and produces output as below: Input ➡️ Activation Function ➡️ Output Input If the weight is 0- input remains unaltered coming into the perceptron. Below is what happens to the input ∑ w i z i  ≽ t then y = 1. Else y = 0.  i t is the threshold which is set by the outgoing part. So the key to output is based on the weighted sum and the threshold. Activation function This is the processing part of the neuron and this determines output. So most commonly the ones used are the Sigmoid function and the hyperbolic tangent. QUESTION: Which activation function should I use? I am going to talk of three key activation functions a) Sigmoid The Sigmoid returns 0 or 1 and in code can be written as return 1.0/(1.0+Math.exp(-x) A Sigmoid is a mathematical curve having the characteristic S shape. DISADVANTAGE: Descending Gradient b) Tanh DISAD...