Next we're going to create a new Django project and app for our profiles API
we're going to do this using the Django admin command line tool so make sure
that you have a terminal or git bash window open and that you're connected to
our vagrant server you're in the forward slash vagrant directory and you are
working on the virtual environment we created previously
Ok now we can use the Django admin command by typing Django - admin dot py start
project profiles project dot what this does is it calls the Django admin dot py
script it passes in and the arguments start project to say that we want to
start a new project and it specifies the name of the project so our project is
going to be called the profiles underscore project and then the location
that we want to create the project so this last dot here this is optional now
if you don't specify this then it will create a new subfolder called Profiles
project but we don't want to do that we actually want to create it in the root
of our project so that's why I put dot to say do it right here in the root
location of our project
ok so if you hit enter then it will go ahead and
automatically create the Django manage dot py script and then the profiles project
directory here with the settings URLs and the wsgi.py file
ok now we have
the Django project we need to create an app within our project for our provides
API so a Django project can consist of one or more sub applications within the
project that you can use to separate different functionality within your
project so we're just going to create one API the profiles REST API so we'll
just create one app and we'll call the app profiles underscore API so python
manage dot py now that we've created our project we need to use the
manage dot py scripts instead of Django admin and then we'll type start app profiles
underscore API
hit enter so this will create a new subfolder called profiles
API which has the admin dot py apps dot py models tests and views and the
migrations folder so this creates a new Django app within our project