Okay, our application is up and running and we managed to install everything and have it run with a
command run server.
Okay.
So to see what's actually inside the folders we have created, let's install a PyCharm, which is a
very popular IDE for Python.
So this is coming from Jetbrains company.
So you go to W-w-w jetbrains.com and then slash PyCharm.
And in this section you can see here, that's an ID that we can download and you can go to download
now and you have two options.
First one, you can install the professional version and I think you have a free trial for a month.
So you can download this one or you can go for a community version.
So you can install this one.
The professional one has a more options for you.
So if you want to pay this not too much, too too expensive, you can pay to have the professional version.
I've used both and I don't see much improvements, to be honest.
So I usually go for a community one and you can download this and that's completely free.
You can select your operating system and you download this and then you on the wizard, you click next,
next, next, next.
And it's nothing complicated in installing this program.
Once we have it, we can open it.
So I have a PyCharm already downloaded, so I will open it in this computer.
That's, as you can see, community version.
And we start with that splash screen here.
And what we can do is we can open our you can create new project here.
What we did in the previous video is we create our project manually in a command line.
But you can also do it with the PyCharm.
So creating new project here will start and create virtual environment for you.
So that's very handy, but we already have it, so I will do open.
Then you have desktop.
This is our folder and I will open this folder here.
And we are inside of our ID here on the left hand side, you have project, you can click on the projects
and you can collapse it and expand it.
And you also have some other tabs here the same way you have it on the bottom.
So you have some tabs that you can open and you can switch in between and you can use it straight away.
This one is very important one, which is terminal.
Basically, this terminal is the same thing as we have here.
So at the moment the our server is running from this terminal.
What I can do is I can hold Ctrl and click C and I will just kill the server.
So at the moment this is our server is not running anymore and I have virtual environment here activated.
What I can do is they are activate and it's not anymore.
I just can close it and it will be deactivated automatically so I can close my terminal and from now
on whatever I will need to use a terminal.
I can use it from this terminal embedded in the ID.
What I can do is also I can make font a little bit bigger.
And do 24.
And you can see here I have a nice and big, so you will be able to see my lines much better.
So what you can see here, I'm inside already tutorial folder and at the beginning of the line you can
see VNV.
That means virtual environment has been activated automatically by PyCharm for me.
So I don't need to do anything here.
I'm inside already.
This folder which is here and that's been activated.
So whatever I will do here, it will be already in virtual environment.
That's very important and very handy because we don't need to activate it every time we will use this.
So we have our terminal.
Then we have an extra things here.
Later on, I will show you how we can actually use some of this feature.
But important part here is we can set up our PyCharm to do things for us.
That's why it's called IDE Integrated Development Environment.
It can do a lot of things for us automatically.
As you can see here, the Manage.py was the file that we run the server before in the terminal.
If I go here now and switch to our server, if I will refresh it now you can see it going to be rich
because we already killed that server in our terminal At the moment it's not working.
So let's come back to our IDE.
And inside here what I can do is I can right click on the Manage.py and here I can do run, manage.
I will do that here and you can see it will fail.
And you hit here.
You see some kind of message that running the manage.py will need to ask for certain command.
So previously we used run server.
But I don't want to do it from here.
Every time I open this folder I don't want to run it run server here I want to configure but the first
time you will run this manage.py you can see here also it's available there.
So once you have that managed, you can click on the arrow here and you do edit configurations.
And in this screen we can do a few things.
First thing is the most important part is the python interpreter you have here.
And you can see this is pointing to desktop tutorial VMs bin Python.
So this python has been used from my virtual environment and wherever we command will run it will use
this python.
So you might have more than one version of Python installed in different folders.
Another big thing here is that we can set some parameters.
As you remember from the previous video, we use run server.
That was the command used for running our server.
If I will put it in a parameters here run server and then I will apply and click okay.
Every time I will click on this green play button, it will run manage.
So start manage by with that parameter run server.
So let's do it now.
I click it here and you can see here my server is running here and that's the same.
So if we go here, Manage.py run server has been executed and my server is running.
If I click now here on that link you can see my server is running.
So every time you would like to have a server running it, it will be as easy as clicking this icon.
Now the icon is gone because the server is running.
So what you can do is you can do it either here or you can do it here.
At the moment we are in a run tab here on the bottom.
So what I can do is I can stop it from here and run it from there or I can run it from the top view.
So run it.
This is the back mode.
So if you would like to run it in the debug mode, you can also use this one and you can run it here
and you can refresh it here.
Stop and rerun.
You can see our server is rerun.
So next time you will open your PyCharm, this will be available.
So the steps to recreate it will be right click and then run manage this, will add this, manage into
this view and then you can do edit configuration and put run server here.
Once you have it, next time you will just click run and the server will spin up for you automatically
and you will have that available for you to use.
So what else is available in our PyCharm?
There is a lot of things very useful for us.
So during this tutorial we will see more and more things.
But the most important part is actually.
Editing part of it so I can open, for example, this file here.
And I can make more space.
You can see here, that's a.
Code editor.
Very handy for me.
And you can see things are color coded.
So we'll use it a lot.
And this python will help us writing our code.
There is a code completion completion A features.
You also have some color coding.
So that's that's about it.
We'll use it more when we will dig in more into the Django.
But that's the basic setup.
In the next video, I will show you how to create an app.