Introducing Django ~ Anaconda + Pycharm ~

Installation of Anaconda

Please download from the following https://www.anaconda.com/products/individual

After installing Anaconda, you will reach this screen.

スクリーンショット 2020-10-18 22.52.52.png

Install Pycharm

In the image above, it is Launch, but in each screen, the Pycharm part should be Install, so please install from there.

Virtual environment construction

Select Environments from the tab on the left.

スクリーンショット 2020-10-18 23.02.31.png

I think the screen will look like this. Build a new environment from Create at the bottom of the screen. Then, the list of installed libraries will be displayed on the right side. If you search for Django from Serach Packeges, it will be a hit, so install it.

Project creation

Press the Green Triangle button for your environment and then press Open Terminal.

Next, move from the terminal to the directory where you want to create the project, and execute the following command.

django-admin startproject project .

This completes the Django project generation.

Application creation

I made a project earlier. Next, create the application that will be the content.

Execute the following command in the previous directory

python manage.py startapp "Any application name"

Open a project in Pycharm

Start Pycharm and open the project you just created. スクリーンショット 2020-10-18 23.35.57.png

Select your environment from Project Interpreter and you're ready to go. All you have to do is write the program.

Then everyone have a good Python life

Recommended Posts

Introducing Django ~ Anaconda + Pycharm ~
Python + Anaconda + Pycharm environment construction
Anaconda3 × Pycharm environment construction memo
Getting Started with Django with PyCharm
Django
anaconda
How to use Anaconda interpreter in PyCharm