Вы находитесь на странице: 1из 4

 

Microsoft Student Chapter, TIET 

 
RUMBLE-2018 
Django Workshop 

Date: March 31 - April 1,2018 

Venue: D-206 

(​Do Bring your LAPTOPS along​) 

Created by: Tanuj Vishnoi 


Vice-Technical Head, MSC,TIET 
For more visit: ​www.msctiet.co.in   

 
INTRODUCTION 

Django is a high-level Python Web framework that encourages rapid


development and clean, pragmatic design. Built by experienced developers, it
takes care of much of the hassle of Web development, so you can focus on
writing your app without needing to reinvent the wheel. It’s free and open
source.

To know more about Django visit : ​https://www.djangoproject.com/

Software Installations 

Linux: 
First we’ll go with basic installation of python package management system (pip) and 
virtual environment creator.  

(You can use yum for fedora based systems instead of sudo) 

1. Install Python and pip: 


a. sudo apt-get install python-pip python-dev build-essential
b. sudo pip3 install --upgrade pip 
2. Install Virtualenv 
a. sudo pip3 install --upgrade virtualenv 
3. Go to directory where you wish to store project 
4. Run command: 
a. virtualenv <project_name> 
5. Activate Virtual environment 
a. cd <project_name> 
b. source bin/activate 
6. Install Django 
a. pip3 install Django==1.11.8 

(We will be using django version 1.11.8) 

7. Deactivate virtual environment : ​deactivate 

   

1   
Windows 

1. First download python 3.x from ​https://www.python.org/downloads/ 


a. OPTIONAL​:​(If python is not identified as an internal command error or 
environment variable error) Check to set python as environment variable: ​Click 
Here 
2. Download the script ​get-pip.py 
3. Go to your downloads folder and run: 
a. python get-pip.py 
4. Install Virtualenv 
a. pip install virtualenv 
5. Go to directory where you wish to store project 
6. Run command: 
a. virtualenv <project_name> 
7. Activate Virtual environment 
a. <project_name>\Scripts\activate 
8. Install Django 
a. pip install Django==1.11.8 
9. Deactivate virtual environment : ​deactivate 

MAC OS / OS X 

1. First download python 3.x from 


https://www.python.org/ftp/python/3.6.4/python-3.6.4-macosx10.6.pkg 
2. Install pip: 
a. sudo easy_install pip
3. Install Virtualenv 
a. pip install virtualenv

OR (if permission denied error)

b. sudo pip install virtualenv


4. Go to directory where you wish to store project 
5. Run command: 
a. virtualenv <project_name> 
6. Activate Virtual environment 
a. cd <project_name> 
b. source bin/activate 
c. (you will see your project name in the left corner) 
7. Install Django 
a. pip install Django==1.11.8 

2   
Alternative for pip 

1. curl ​https://bootstrap.pypa.io/get-pip.py​ > get-pip.py 


2. sudo python get-pip.py 
3. sudo pip install requests 

OPTIONAL TEXT-EDITORS 

We  suggest  using  editors  like  ​Atom  or  ​sublime  text  or  ​pycharm​.  Although  you  can  use 
any of your favourite editors.  

If  you  face  any installation query please reply back at ​msc@thapar.edu with subject 


as: Django Installation <OS_USED>.  

For  those  who  are  unable  to  do  prior  installation,  kindly  reach  the  venue  by  10:00 
am on 31st March,2018. 

-----------------------------------------------------Thanks------------------------------------------------ 

3   

Вам также может понравиться