[PYTHON] [Day 1] Prepare Django's development environment

January 6, 2021

Introduction

The intent of creating something like this this time is for me in the future to look back at this article and see my growth.

I can't even think about what I'm doing in the future, but I hope I can understand at a glance that I used to do this kind of thing.

So, what I referred to this time is Mr. Kuro's Django study journal. In the future, we will continue to study Django according to this study journal. Django Study Book

The following explanations are based on the Django study journal. If you want to learn Django, I recommend you to jump to the above url and proceed with the learning.

This blog (Django study journal) is made fairly easy to understand, and I don't think it will trip over basically, but I personally corrected the time-consuming part and left it as a diary.

By the way, this time I am on macOS.11.0 The editor uses Visual Studio Code.

Preparing a virtual environment for python

First, get ready to proceed with Django development. It is assumed here that python3 is already installed.

This time we will create a virtual environment for development with venv. We will continue to operate basically in the vnev environment.

$ python3 -m venv venv

In some cases, the "python3" part may be "python". You should now have a venv directory.

Now, let's activate the created venv environment.

$ source venv/bin/activate

It is now enabled. If you want to get out of the venv environment, enter the following command.

(venv)$ deactivate

Now you are ready.

Django installation

Let's actually install Django. We will use pip in the venv environment.

(venv)$ pip install django

Now you're ready to go.

in conclusion

This time, I prepared the environment for Django. This is the end. See you again.

→ Next time: Generate Day2 project

Recommended Posts

[Day 1] Prepare Django's development environment
Prepare Python development environment on Ubuntu
Prepare your first Python development environment
Prepare Python development environment with Atom
Rebuild Django's development environment with Docker! !! !! !!
Prepare the development environment with anyenv
How to prepare Python development environment [Mac]
Prepare the development environment for keyhac for Mac
Introduction to Python Let's prepare the development environment
I created a Dockerfile for Django's development environment
Python development environment construction
About Python development environment
python2.7 development environment construction
Development environment in Python
[Memo] Django development environment
Install Ubuntu 20.04 with GUI and prepare the development environment
Prepare Django development environment using homebrew on MacOSX Mavericks (10.9)
Pros and cons of converting Django's development environment to Docker
Development environment suitable for ArcPy
Django development environment construction memo
Prepare Chainer environment on Windows
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)
Prepare python3 environment with Docker
Organize your Python development environment
Prepare Python development environment with Mac + Windows + VisualStudio Code (Mac version)
Django environment development on Windows 10
[ev3dev × Python] Build ev3dev development environment
[MEMO] [Development environment construction] Python
Ubuntu18.04 Development environment creation memo
[For organizing] Python development environment
django project development environment construction
[MEMO] [Development environment construction] wine
Development environment load measurement memo
Prepare pipenv environment with amazon Linux 2
[For beginners] Django -Development environment construction-
Integrated Development Environment (IDE) vs. Virtual environment
[Python3] Development environment construction << Windows edition >>
Python development environment options for May 2020
Python development environment construction on macOS
[MEMO] [Development environment construction] Jupyter Notebook
Vim + Python development environment setting memo
Emacs settings for Python development environment
Install Python development environment on Windows 10
Emacs Python development environment construction memo
Checking the NAOqi Python development environment
Ubuntu Desktop 20.04 development environment construction memo
Development environment construction (2020 version, WSL2 + VcXsrv)
Prepare the environment for Atom for Pythonista
Prepare Python development environment for each project in Windows environment (VSCode + virtualEnvWrapper + Pylint)