You are on page 1of 4

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

School of Computer Science


UNIVERSITY OF PETROLEUM AND ENERGY STUDIES
Dehradun-248007
2021-22
Roll No: R110218138 CAD LAB
SAP ID: 500067706

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

Step 2: Installing Django


First install pip using easy_install and then using pip install virtualenv.
Open Terminal and create a folder named cloudapp on desktop using the following
command

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

python -m pip install Django

Verify the installation using the following command:

python -m django --version

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

You might also like