Professional Documents
Culture Documents
Record of Experiments: Cloud Application Development Lab
Record of Experiments: Cloud Application Development Lab
Submitted By
Sarthak Goyal
Enrolment No.: R110218138
SAP ID: 500067706
Semester VI
B. Tech. (Computer Sc. and Engineering)
Specialization in CCVT
Submitted To
Ms. Shelly
Experiment 2:
Aim: Setup and Configure Cloud application development platform(Django).
Requirements: Python(2.7.x or 3.4.x), virtualenv, Django, Any IDE(Microsoft Visual Code,
Atom), easy_install, pip.
Setting up the cloud environment of Django involves installation of Python, Django. Since
Django deals with web application, we would need a web server setup as well.
Step 1: Installing Python
Since we're on Mac OS X, Python is probably installed already. We can verify it by typing
following command at a terminal. If the output is something like this, then Python is
installed.
python --version
Otherwise download and install the latest version of Python from the link
http://www.python.org/download
virtualenv cloudapp
2
Roll No: R110218138 CAD LAB
SAP ID: 500067706
This will create a virtual environment named cloudapp. Change directory to this folder. Enter
the following command to activate the virtual environment.
source bin/activate
You will see (cloudapp) before all your prompt which means you’re running within the
cloudapp virtualenv.
Install Django by running the following command
3
Roll No: R110218138 CAD LAB
SAP ID: 500067706
Step 3: Web Server
Django comes with a pre-configured lightweight web server for developing and testing
applications. This web server restarts whenever you modify the code.
END OF EXERCISE