Hi, in this video, we are going to create
a new app in our existing Django project.
First, let's have a look how the website looks like.
So in my Terminal, make sure you,
your virtual environment is activated.
Mine is not, because I don't have this parenthesis in
front here, but if I create a new Terminal using
the plus icon or go to Terminal, New,
[No Audio]
my virtual environment is activated now, so I can go ahead and
say, python manage.py run server,
[No Audio]
go to that website
and this is how the website looks like now.
And we're going to have another menu item here,
which is going to contain the translator app.
So let's get to work.
Let's create the app, stop the server from running with
CTRL+C and run python manage.py startapp and
then give a name to the app,
[Audio Typing]
such as translator.
Execute, and a new, translator directory is created.
You can see it in here.
So it's in the same directory with blog.
blog is in the root directory.
translator is also in the root
directory, as you can see here.
Now, once you create an app with startapp,
then you want to register that app in my
site settings, go to settings.py, the djangoproject
settings, and you want to go to, INSTALLED_APPS.
So before we added blog here, when we created
the Blog App, now, after the comma, we want
to add another item to this INSTALLED_APPS list.
So it's a string and the name of this is translator,
translator, yeah.
So this should reflect the name of your app,
and the name of the directory here.
[No Audio]
save, settings.py.
And that is how to create a new empty app in Django.
In the next video, we are going
to start building our HTML template. So see you there.