what is going on guys my name is becky roberts and welcome to our very first
tutorial in Django
now if you guys are wondering what the f jingle is it's not the movie i mean it
is a movie but in this tutorial series i am going to be teaching you guys about
the Python web framework
Django and if you guys don't even know what that is it's basically a way that
you can create websites using python
now whenever I say create websites i'm not talking about the front end
in other words i'm not talking about the colors of the buttons and you know
making all the font look cool and stuff like that
i'm talking about the back end of web development in other words working with
the servers and databases and all the fun stuff
so that's what we're going to be doing and we're going to be learned do that
with python
so just a bit like PHP if you guys are still kind of fuzzy on it but cooler so
sounds pretty cool how the heck do we actually download this set it up in
install it on our computer
well what we need to do is pop open a command line so if you're using linux or
mac just open up your terminal
if you're using Windows then go ahead and type in powershell now if you right
click this and hit run is administrator then follow along with me now if you are
watching this tutorial in your on linux or mac then everything I do in this on
windows can be the exact same however the one difference that you need to do
is before every command i type took the word pseudo that's going to give you a
superuser privileges and the reason that i'm not doing it on windows is because
windows doesn't have a pseudo that's what administrator is on windows
so again that's why you need to open it is administrator so you have full
privileges on Windows but again on mac and linux just type sudo before
everything
so again since we're using Python to develop websites the first thing that we
need is Python now
by the way you guys need to know python before watching this video series I'm
guessing you do already
but if you know what just go ahead and
I watch my python series now just to verify that you have installed correctly
just go ahead and type Python - - version so i am using Python 3.4
however if you use any version 3.5 or later you're gonna be a little um able
to follow along with this tutorial series just fine
so the next thing we need to do is we need to make sure that we have easy
install or pip set up now
these are actually tools that we got whenever we just downloaded python
however the reason that we need these is because what
easy install and pip are our tools that allow you to download things online
so the thing that we're going to be downloading is Django and that's the
tools that we use
so if you want to verify that you have those tools then again just right easy
underscore installed or pip in right - - version so it says all right you have
version 12 . o . 5 so I'm good to go now if you guys don't see this then I'm
guessing that you do have this tool but it's just not configured correctly so
i'm going to show you guys how to fix that
so go ahead and open up windows explorer and go to your hard drive right here in
by the way if you just see this on a version number then just skip ahead like
two minutes and just never mind what I'm saying
but for those of you who don't from your route hard drive
go ahead and click Python 3 4 or whatever version of it and go ahead and
click scripts so this is the tool right here easy install
it's just that your computer it doesn't know where it is so that's why it's like
um I don't recognize this command
so in order to tell your computer hey whenever I type in easy install
look here just go ahead and right click this and click properties and then go
ahead and copy this path so go ahead and right click and copy
so that's the path that we need to tell her computer look but where do we set
that once you have that copied
go ahead and open up this menu again right click computer and hit properties
now if you go to advanced system settings and environment variables then
what you can do is you can look for a variable called path now if you don't
have this variable then you can just go ahead and make it but I'm guessing that
most of you do so go ahead and select it and hit edit now by the way if you guys
are wondering what the heck we're doing this is where you tell windows to look
when we type in something into the command line right here so it already
has python set up
so this is how it knows to look in this directory for python
however if you didn't have this little line of code then just go ahead and add
a semicolon at the end and paste in that path
so again click ok ok ok
close out of their clothes out of everything now another thing that you're
going to need to do is you're actually going to need to restart this and that
just you know allows on powershell to get all the new paths that you just
updated but again once you restart it and do this again
then it's going to know exactly where to look now again if you are looking in
your computer and you're looking here here and you didn't even have easy
install in there
then what you can do is this you can go ahead and go to this address right here
and that's bootstrap that py PA died 09 an arena because it's right there
so this is a script that you can use to manually install easy installer
so how do you actually run this will just go ahead and right click it and hit
save as and then just save it as a file on your desktop and then once in you can
actually save it anywhere you want
but once you have a safe somewhere on your computer and you download it then
what you can do is you can just see d
in other words change to your desktop by clicking CD on the squiggly brace on the
top left every key board the two day or whatever it's called
and then just start typing desktop hit tab
and hit enter so that's going to move you to your desktop and now we can do is
this
we just write Python then whatever file you right after this is essentially the
file that python is going to run so it's going to be called easy underscore set
up . py or if you save it as a different file then just go ahead and then I type
that file name but once you hit enter then it's gonna run it manually
so again just clear out of here so now everyone should have a Python in easy
install install properly so the last thing that we need to do is we actually
need to install Django
so from here all we do is you're right easy install
since that should be set up properly Django
so whenever you hit Enter this is going to install the latest version of Jango
now if you're watching these stores in the future in maybe like Django one . 10
came out or something like that and you want to make sure that you're working
with version that I'm working with like one . man
then what you can do is you can just specify a specific version so anytime
you want to do that
just write equals equals and then the version number which is 1.9 so again if
you just want the latest version just very easy install Django
if you want one . 91.9 if you want an older one like 1.8 then go ahead and do
that but again i already have installed so i'm not going to run it
however after you have it installed and after you ran that then what you can do
is you can just verify that you have it installed correctly by rating this
jingo - admin - - version and once you see this one . 9.1 or any version number
after this then you're going to be able to follow along with the rest of this
tutorial series just fine
so again make sure that you have django installed correctly if you have any
questions then just go ahead and leave a comment below i'm sure that I you know a
bunch of people are willing to help you out if not then you can ask in my form
and there's a link below this video to get there so I yeah
there you go in the next video we're going to be learning how to set up a
jingle project