<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python-Django%2FC2%2FGetting-started-with-Django%2FEnglish</id>
		<title>Python-Django/C2/Getting-started-with-Django/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python-Django%2FC2%2FGetting-started-with-Django%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-Django/C2/Getting-started-with-Django/English&amp;action=history"/>
		<updated>2026-04-10T09:18:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-Django/C2/Getting-started-with-Django/English&amp;diff=49866&amp;oldid=prev</id>
		<title>Nancyvarkey at 00:34, 8 November 2019</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-Django/C2/Getting-started-with-Django/English&amp;diff=49866&amp;oldid=prev"/>
				<updated>2019-11-08T00:34:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:34, 8 November 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:Python Virtual Environment&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide:Python Virtual Environment&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| * '''Python virtual environment '''is an isolated working copy of '''Python'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''Python virtual environment '''is an isolated working copy of '''Python'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''virtualenv''' is a tool to create an isolated '''Python environment'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''virtualenv''' is a tool to create an isolated '''Python environment'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* It allows us to work on a specific '''Django project '''without affecting other '''projects'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* It allows us to work on a specific '''Django project '''without affecting other '''projects'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide: pip&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| Slide: pip&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| * One can install, upgrade and remove '''Python packages''' using a program called '''pip'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|| &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* One can install, upgrade and remove '''Python packages''' using a program called '''pip'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* By default, '''pip''' will install '''packages '''from the '''Python''' '''Package''' '''Index''' https://pypi.python.org/pypi&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* By default, '''pip''' will install '''packages '''from the '''Python''' '''Package''' '''Index''' https://pypi.python.org/pypi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-Django/C2/Getting-started-with-Django/English&amp;diff=44225&amp;oldid=prev</id>
		<title>Pravin1389: Created page with &quot;'''Title of script: '''Getting Started With Django  '''Keywords: '''Python Django, Video tutorial, install Django, Python virtual environment, pip, start Django Project, Djang...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-Django/C2/Getting-started-with-Django/English&amp;diff=44225&amp;oldid=prev"/>
				<updated>2018-09-05T11:33:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of script: &amp;#039;&amp;#039;&amp;#039;Getting Started With Django  &amp;#039;&amp;#039;&amp;#039;Keywords: &amp;#039;&amp;#039;&amp;#039;Python Django, Video tutorial, install Django, Python virtual environment, pip, start Django Project, Djang...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of script: '''Getting Started With Django&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Python Django, Video tutorial, install Django, Python virtual environment, pip, start Django Project, Django Project file structure&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|-&lt;br /&gt;
|| Visual cue&lt;br /&gt;
|| Narration&lt;br /&gt;
|-&lt;br /&gt;
||Slide: Getting started with Django&lt;br /&gt;
|| Hello and welcome to the spoken tutorial on “Getting started with '''Django'''”&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Learning Objectives&lt;br /&gt;
|| In this tutorial, we will learn&lt;br /&gt;
&lt;br /&gt;
* About '''Python Virtual Environment'''&lt;br /&gt;
* How to use the '''Virtual Environment'''&lt;br /&gt;
* How to install '''Django'''&lt;br /&gt;
* How to start a''' Django project '''and&lt;br /&gt;
* The '''Django project''' file structure&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||Slide:System Requirements&lt;br /&gt;
|| To record this tutorial, I am using &lt;br /&gt;
&lt;br /&gt;
* '''Ubuntu Linux 16.04'''&lt;br /&gt;
* '''Python 3.5 '''&lt;br /&gt;
* '''Python 3.4-venv or higher '''and&lt;br /&gt;
* '''Firefox web browser.'''&lt;br /&gt;
&lt;br /&gt;
However you may use any other browser of your choice.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:Python Virtual Environment&lt;br /&gt;
|| * '''Python virtual environment '''is an isolated working copy of '''Python'''&lt;br /&gt;
* '''virtualenv''' is a tool to create an isolated '''Python environment'''&lt;br /&gt;
* It allows us to work on a specific '''Django project '''without affecting other '''projects'''&lt;br /&gt;
* It does not require '''root access'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: pip&lt;br /&gt;
|| * One can install, upgrade and remove '''Python packages''' using a program called '''pip'''&lt;br /&gt;
* By default, '''pip''' will install '''packages '''from the '''Python''' '''Package''' '''Index''' https://pypi.python.org/pypi&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Open a terminal window&lt;br /&gt;
&lt;br /&gt;
Press CTRl+ALT+T&lt;br /&gt;
|| Open the '''Terminal''' by pressing '''Ctrl''', '''Alt''' and '''T''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
|| Let me create a folder named '''my-django.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This folder will help me to organize my files in a single location on my machine.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type''' mkdir my-django'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
|| To do so, type '''mkdir &amp;lt;space&amp;gt; my &amp;lt;hyphen&amp;gt; django '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type''' cd my-django''' and press '''Enter'''&lt;br /&gt;
|| Then type '''cd &amp;lt;space&amp;gt;''' '''my hyphen django''' and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''python3 -m venv myapp_env''' &lt;br /&gt;
|| Let us now create a new '''virtual environment '''named '''myapp underscore env.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''python three &amp;lt;space&amp;gt;''' '''hyphen''' '''m''' '''&amp;lt;space&amp;gt;''' '''venv''' '''&amp;lt;space&amp;gt;''' '''myapp''' '''underscore''' '''env''' &lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Highlight '''-m'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight''' venv'''&lt;br /&gt;
|| '''hyphen'' ''m '''option is used to pass the '''python module '''as a '''command line argument.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here '''venv '''is the '''python module.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The given '''module '''is executed as a '''script'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Press '''Enter'''&lt;br /&gt;
|| Now press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''ls'''&lt;br /&gt;
|| Type '''ls '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that a '''directory''' named '''myapp underscore env''' has been created.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''ls myapp_env''' and press '''Enter'''&lt;br /&gt;
|| Type '''ls''' '''&amp;lt;space&amp;gt;''' '''myapp''' '''underscore''' '''env '''and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to the list of directories in the terminal&lt;br /&gt;
|| We see that the '''virtual environment''' contains various '''directories'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to '''bin'''&lt;br /&gt;
|| '''bin''' contains executable files.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to '''lib'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ls &amp;lt;YOUR_PATH TO '''site-packages'''&amp;gt;&lt;br /&gt;
|| '''lib''' contains supporting library files.&lt;br /&gt;
&lt;br /&gt;
'''Packages '''installed in this '''environment '''will be in '''site-packages.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
Type: &lt;br /&gt;
&lt;br /&gt;
'''source myapp_env/bin/activate'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
|| Let us now activate the '''virtual environment''':&lt;br /&gt;
&lt;br /&gt;
Type '''source &amp;lt;space&amp;gt; myapp underscore env slash bin slash activate''' &lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Highlight&lt;br /&gt;
&lt;br /&gt;
'''(myapp_env)'''&lt;br /&gt;
&lt;br /&gt;
|| So, the '''virtual environment''' is active now.&lt;br /&gt;
&lt;br /&gt;
We can see an additional text in the '''command prompt.'''&lt;br /&gt;
&lt;br /&gt;
It shows the '''virtual environment '''we are using - that is '''myapp underscore env.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''python -m django --version''' and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|| Now, let's learn how to install '''Django.'''&lt;br /&gt;
&lt;br /&gt;
First, let’s check whether '''Django''' is already installed on our system or not.&lt;br /&gt;
&lt;br /&gt;
To do so type '''python &amp;lt;space&amp;gt; hyphen m &amp;lt;space&amp;gt; django &amp;lt;space&amp;gt; hyphen hyphen ­version''' &lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to the error message&lt;br /&gt;
|| Obviously it is not installed in this '''Virtual Environment'''.&lt;br /&gt;
&lt;br /&gt;
So we will see an error message '''No module named django.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''pip install django==2.0''' and press '''Enter'''&lt;br /&gt;
|| In the new '''environment''', we will use '''pip''' to install '''Django.'''&lt;br /&gt;
&lt;br /&gt;
First let me clear the '''terminal''' by pressing '''Ctrl''' and '''L''' keys&lt;br /&gt;
&lt;br /&gt;
Type '''pip &amp;lt;space&amp;gt; install &amp;lt;space&amp;gt; django &amp;lt;equal to equal to&amp;gt;2.0'''&lt;br /&gt;
&lt;br /&gt;
We will use '''Django''' version 2.0&lt;br /&gt;
&lt;br /&gt;
If we don’t mention '''&amp;lt;equal to equal to&amp;gt; 2.0 '''then the latest''' '''stable '''Django''' version will be installed.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The installation may take some time depends upon your internet speed.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''python -m django --version '''and press '''Enter'''&lt;br /&gt;
|| Now, let us check whether the installation has been successful.&lt;br /&gt;
&lt;br /&gt;
Clear the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
Type '''python &amp;lt;space&amp;gt; hyphen m &amp;lt;space&amp;gt; django &amp;lt;space&amp;gt; hyphen hyphen version''' &lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to the output&lt;br /&gt;
|| The '''terminal''' output displays '''Django''' version '''2.0''' here.&lt;br /&gt;
&lt;br /&gt;
This indicates that the '''Django package''' has been installed.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Using command:&lt;br /&gt;
&lt;br /&gt;
'''pip install -U django'''&lt;br /&gt;
|| We can also update the '''Django''' version in the future using the command:&lt;br /&gt;
&lt;br /&gt;
'''pip &amp;lt;space&amp;gt; install &amp;lt;space&amp;gt; hyphen U &amp;lt;space&amp;gt; django'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''pip --help or pip --help''' and press '''Enter'''&lt;br /&gt;
|| For more help on '''pip''':&lt;br /&gt;
&lt;br /&gt;
Type '''pip &amp;lt;space&amp;gt; hyphen hyphen help'''&lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''django-admin startproject mysite''' and press '''Enter'''&lt;br /&gt;
|| Next we will create a '''Django project''' named '''mysite.'''&lt;br /&gt;
&lt;br /&gt;
In the '''terminal''', type:&lt;br /&gt;
&lt;br /&gt;
'''django hyphen admin &amp;lt;space&amp;gt; startproject &amp;lt;space&amp;gt; mysite'''&lt;br /&gt;
&lt;br /&gt;
And press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''ls''' and press '''Enter'''&lt;br /&gt;
|| Type '''ls '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
We can see the '''project directory mysite.'''&lt;br /&gt;
&lt;br /&gt;
Let us now see the''' project''' file structure.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Slide&lt;br /&gt;
&lt;br /&gt;
Slide: What is a Django project?&lt;br /&gt;
|| Before that we will understand what a '''Django project''' is.&lt;br /&gt;
&lt;br /&gt;
A '''Django project '''is a collection of &lt;br /&gt;
* Settings for an instance of '''Django'''&lt;br /&gt;
* '''Database''' configuration&lt;br /&gt;
* '''Django''' specific options and&lt;br /&gt;
* Application specific settings&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: File structure&lt;br /&gt;
&lt;br /&gt;
mysite/ &lt;br /&gt;
&lt;br /&gt;
manage.py&lt;br /&gt;
&lt;br /&gt;
mysite/&lt;br /&gt;
&lt;br /&gt;
   _init_.py&lt;br /&gt;
&lt;br /&gt;
   settings.py&lt;br /&gt;
&lt;br /&gt;
   urls.py&lt;br /&gt;
&lt;br /&gt;
   wsgi.py &lt;br /&gt;
|| The '''startproject command''' creates a '''project''' consisting of a file structure as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
|| Switch back to the '''terminal'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''cd mysite'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
|| Now type '''cd &amp;lt;space&amp;gt; mysite '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We are inside the '''mysite directory.'''&lt;br /&gt;
|-&lt;br /&gt;
| | [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''ls '''and press '''Enter'''&lt;br /&gt;
|| Type '''ls '''and press '''Enter '''to list the contents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight the '''mysite''' file structure in the terminal&lt;br /&gt;
|| Here we can see that the''' mysite file structure''' has been created.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
point to '''~/myproject/mysite'''$&lt;br /&gt;
|| The outer''' mysite''' is just a '''container '''of our '''project'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to '''manage.py'''&lt;br /&gt;
|| '''manage.py '''is a '''command line utility '''to interact with our '''Django project.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to inner '''mysite'''&lt;br /&gt;
|| The inner '''mysite''' is the actual '''Python package''' for our '''project.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type '''ls mysite''' and press Enter&lt;br /&gt;
|| Now, type '''ls space''' '''mysite '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to __init__.py&lt;br /&gt;
|| We see '''init dot py'''&lt;br /&gt;
&lt;br /&gt;
That means the''' mysite directory''' contains '''python packages.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to settings.py&lt;br /&gt;
|| '''settings.py '''file contains all the''' '''configuration of our '''Django project.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to urls.py&lt;br /&gt;
|| '''urls.py '''contains '''URL '''declarations for this''' project.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to wsgi.py&lt;br /&gt;
|| '''wsgi.py '''is an entry-point for''' web servers '''to serve our '''project.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Run the project &lt;br /&gt;
|| Next, let's see how to start the '''Django development server.'''&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type python manage.py runserver and press Enter&lt;br /&gt;
|| Type '''python &amp;lt;space&amp;gt; manage dot py &amp;lt;space&amp;gt; runserver''' &lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point to shell prompt &lt;br /&gt;
|| We can see that the '''server''' is running.&lt;br /&gt;
|-&lt;br /&gt;
|| Open a browser and type [http://localhost:8000/ http://localhost:8000/]&lt;br /&gt;
|| Next, open a web browser.&lt;br /&gt;
&lt;br /&gt;
In the address bar, type [http://localhost:8000/ http://localhost:8000/] or [http://localhost:8000/ http://127.0.0.1:8000/] &lt;br /&gt;
&lt;br /&gt;
And press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Point to the Django index page&lt;br /&gt;
|| In the web browser, we see the '''Django index page.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Terminal&lt;br /&gt;
|| Let us go back to the '''terminal.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl+c simultaneously &lt;br /&gt;
|| To stop the '''server''', press '''Ctrl''' and '''C''' keys simultaneously.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Type deactivate and press Enter&lt;br /&gt;
|| When the '''virtual environment''' is not in use, we can deactivate it.&lt;br /&gt;
&lt;br /&gt;
To do so, type '''deactivate''' and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| [Terminal]&lt;br /&gt;
&lt;br /&gt;
Point the shell prompt&lt;br /&gt;
|| We can see that, the '''virtual environment '''name disappears from the '''command prompt.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Slide&lt;br /&gt;
&lt;br /&gt;
Slide: Delete the virtual environment&lt;br /&gt;
&lt;br /&gt;
|| If the '''virtual environment''' is no longer needed, we can delete it.&lt;br /&gt;
&lt;br /&gt;
This is done by deleting its '''directory'''.&lt;br /&gt;
&lt;br /&gt;
The command is '''rm &amp;lt;space&amp;gt; hyphen rf &amp;lt;space&amp;gt; myapp underscore env'''&lt;br /&gt;
|-&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| For now, we will not delete.&lt;br /&gt;
&lt;br /&gt;
We will keep the '''virtual environment '''for creating the '''Django project '''in the upcoming tutorials.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
||Slide:Summary&lt;br /&gt;
||In this tutorial, we have learnt -&lt;br /&gt;
&lt;br /&gt;
* About '''Python Virtual Environment'''&lt;br /&gt;
* How to use the '''Virtual Environment'''&lt;br /&gt;
* How to install '''Django'''&lt;br /&gt;
* How to start a''' Django project''' and&lt;br /&gt;
* The '''Django project '''file structure&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Assignment&lt;br /&gt;
|| As an assignment&lt;br /&gt;
&lt;br /&gt;
* Create a new '''virtual environment '''&lt;br /&gt;
* Activate it&lt;br /&gt;
* Install the latest version of '''Django'''&lt;br /&gt;
* Create a new '''project '''named '''demo_project''' under the same '''virtual environment'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: About Spoken Tutorial project&lt;br /&gt;
|| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide:Spoken Tutorial workshops&lt;br /&gt;
|| The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Forum for specific questions:&lt;br /&gt;
|| Do you have questions in this Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
Choose the minute and second where you have the question.&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly.&lt;br /&gt;
&lt;br /&gt;
Someone from our team will answer them.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: Forum for specific questions:&lt;br /&gt;
|| The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
With less clutter, we can use these discussion as instructional material.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide: FOSSEE to answer questions&lt;br /&gt;
|| Do you have questions not related to the Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Do you have general or technical questions on the software?&lt;br /&gt;
&lt;br /&gt;
Please visit the FOSSEE Forum.&lt;br /&gt;
&lt;br /&gt;
Choose the Software and post your question.&lt;br /&gt;
|-&lt;br /&gt;
| |Slide:Acknowledgement&lt;br /&gt;
|| Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.&lt;br /&gt;
&lt;br /&gt;
More information on this mission is available at this link.&lt;br /&gt;
|-&lt;br /&gt;
| | Slide: Thanks Slide&lt;br /&gt;
|| This script has been contributed by Thiagarajar College of Engineering and the FOSSEE Project, IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
The video has been recorded by Praveen from Spoken Tutorial Project, IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thanks for watching.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pravin1389</name></author>	</entry>

	</feed>