WEBVTT
Kind: captions
Language: en

00:00:00.079 --> 00:00:06.180
Next we're going to test the changes
we've made to our Django project you can

00:00:06.180 --> 00:00:10.530
easily test changes that you make to a
Django project by using the Django

00:00:10.530 --> 00:00:16.379
development server so Django comes with
a handy development server that we can

00:00:16.379 --> 00:00:22.590
use to test our changes in the browser
as we make them to the project the way

00:00:22.590 --> 00:00:28.019
you start the Django development web
server is you connect to our vagrant box

00:00:28.019 --> 00:00:32.130
make sure you're working on our
environment and that you're in the slash

00:00:32.130 --> 00:00:44.539
vagrant directory and then type Python
manage dot py run server 0.0.0.0 colon 8000

00:00:44.539 --> 00:00:49.950
what this says is it asks django to
start running the development web server

00:00:49.950 --> 00:00:56.250
and this 0.0.0.0 means make it available
on all network adapters on our

00:00:56.250 --> 00:01:03.320
development server and this colon 8000
says start it in port 8000 so we can

00:01:03.320 --> 00:01:06.400
access it via port 8000

00:01:06.400 --> 00:01:10.500
if you remember
in our vagrant file we mapped port 8000

00:01:10.500 --> 00:01:15.240
on our host machine to port 8000 on the
development machine and that's why we

00:01:15.240 --> 00:01:19.040
specify port 8000 when we start the
server

00:01:19.040 --> 00:01:21.600
okay so hit enter and the django

00:01:21.600 --> 00:01:25.200
development server should start don't
worry about this warning about the

00:01:25.200 --> 00:01:29.790
migrations we're going to add these later
on in a future video alright now that

00:01:29.790 --> 00:01:38.040
the server's running we can open up our
browser and we can head to 127.0.0.1

00:01:38.040 --> 00:01:43.620
that's the localhost address : 8000

00:01:43.620 --> 00:01:47.100
hit enter and you can see that the Django

00:01:47.100 --> 00:01:51.570
project placeholder page has been
displayed and it says the install works

00:01:51.570 --> 00:01:55.979
successfully congratulations you can see
this rocket ship shooting up into space

00:01:55.979 --> 00:02:00.780
so that is our django project we know
that it's working if we head back into

00:02:00.780 --> 00:02:05.520
the terminal we can see that it served
up these files here which is when we

00:02:05.520 --> 00:02:09.479
basically just accessed it in the
browser so if you refresh the page you

00:02:09.479 --> 00:02:12.480
can see it outputs every time you
connect to it in

00:02:12.480 --> 00:02:18.599
here and if you need to stop the server then
you simply type control C and the Django

00:02:18.599 --> 00:02:22.500
server will stop and then if you refresh
you will no longer be able to access the

00:02:22.500 --> 00:02:27.750
page so if we run the same command again
you can rerun the server and then the

00:02:27.750 --> 00:02:29.440
page can be refreshed

00:02:29.440 --> 00:02:33.840
ok now that the
server is up and running let's go ahead

00:02:33.840 --> 00:02:39.630
and commit our changes to git so what
I'm going to do is open a new tab here to

00:02:39.630 --> 00:02:45.720
get a terminal on our local project not
on the vagrant server and I'm going to type git

00:02:45.720 --> 00:02:51.870
add dot to add all these new files that
we added all the green files that we

00:02:51.870 --> 00:02:56.130
created our project files and our
requirement file and everything I'm

00:02:56.130 --> 00:03:02.269
going to do git add and then git commit -
am and then pass in the commit message

00:03:02.269 --> 00:03:07.440
created Django project and app

00:03:07.440 --> 00:03:11.069
hit enter
and then do git push origin and it will

00:03:11.069 --> 00:03:14.930
push our app up to github

