Next we're going to test the changes we've made to our Django project you can
easily test changes that you make to a Django project by using the Django
development server so Django comes with a handy development server that we can
use to test our changes in the browser as we make them to the project the way
you start the Django development web server is you connect to our vagrant box
make sure you're working on our environment and that you're in the slash
vagrant directory and then type Python manage dot py run server 0.0.0.0 colon 8000
what this says is it asks django to start running the development web server
and this 0.0.0.0 means make it available on all network adapters on our
development server and this colon 8000 says start it in port 8000 so we can
access it via port 8000
if you remember in our vagrant file we mapped port 8000
on our host machine to port 8000 on the development machine and that's why we
specify port 8000 when we start the server
okay so hit enter and the django
development server should start don't worry about this warning about the
migrations we're going to add these later on in a future video alright now that
the server's running we can open up our browser and we can head to 127.0.0.1
that's the localhost address : 8000
hit enter and you can see that the Django
project placeholder page has been displayed and it says the install works
successfully congratulations you can see this rocket ship shooting up into space
so that is our django project we know that it's working if we head back into
the terminal we can see that it served up these files here which is when we
basically just accessed it in the browser so if you refresh the page you
can see it outputs every time you connect to it in
here and if you need to stop the server then you simply type control C and the Django
server will stop and then if you refresh you will no longer be able to access the
page so if we run the same command again you can rerun the server and then the
page can be refreshed
ok now that the server is up and running let's go ahead
and commit our changes to git so what I'm going to do is open a new tab here to
get a terminal on our local project not on the vagrant server and I'm going to type git
add dot to add all these new files that we added all the green files that we
created our project files and our requirement file and everything I'm
going to do git add and then git commit - am and then pass in the commit message
created Django project and app
hit enter and then do git push origin and it will
push our app up to github