USE PYTHON WITH FASTGCI

Using virtualenv for Django and other Python frameworks is very easy. With that ease comes portability, just in case you need to move the site to a VPS or different shared server for any reason at any time.

Note: to complete this tutorial, you’ll need SSH access and pip/virtualenv needs to be installed on your server. Both of these should be done by default! So continue on with the tutorial. If you find you are having issues, open a ticket with our Tech Support Ninjas, and we’ll triple-check for you.

Once you’ve received confirmation from our team that those items have been installed then you can move on with the actual installation of Django. Throughout this tutorial you’ll see the term ‘username’, which should be substituted with your unique username. Let’s get started!

Login with SSH

Once logged in, type the following commands

Note: where x.x is the desired Python version. This article utilizes Python 2.6. To set up a different environment, like Python 2.7 or Python 3.4, change the code above to reflect that, where referenced. If you are using Python 3, you should use the “flup6” module instead of “flup”

Note: where x.x is the desired Python version. This article utilizes Python 2.6. To set up a different environment, like Python 2.7 or Python 3.4, change the code above to reflect that, where referenced.

If you’ve followed the steps correctly, changed your username when needed, and everything else is in order, then you should be done installing Django! If you need any help with these steps, don’t hesitate to contact our venerable Tech Support Ninjas.