Python practice_Virtual environment setup ~ Django installation

I'm practicing Python. I built a virtual environment in the tutorial, so it's a memorandum.

By building a virtual environment for each project, Python can be executed within a limited range, and unnecessary interference between frameworks and libraries can be avoided.

I feel like I'm referring to some Django learning sites Building a virtual environment seems to be essential, so I'll do it.

Create a virtual environment

First, create a folder on your desktop (named [django_girls] this time).

$ cd djangogirls Go to the folder with $ python3 -m venv myvenv Create a virtual environment with.

For now, this will create a folder named [myvenv] that contains the virtual environment (a series of defolders and files).

Start virtual environment

At the console $ source myvenv/bin/activate To start the virtual environment. If the boot completes successfully, the console will display `` `(myvenv) ``` at the beginning of the prompt.

Install Django

pip is pre-installed if it is Python 3.4 or higher (2.7.9 or higher for Python 2), so you can use it immediately. (Reference)

So this time (using 3 series) is a pass. Then follow the tutorial instructions to create a file called [requirements.txt] → text (Django ~ = 2.2.4 Fill in ) → Execute`` pip install -r requirements.txt `` And install Django.

According to the instructions in the tutorial, the version was "2.2.4", which was not the latest version, so I changed the text to be entered to Django ~ = 3.0.3 and executed it to install the latest version.

What version of django you are using $ python -m django --version Can be confirmed at. (Reference)

Continue from installing Git.

Below, the site referred to in this tutorial is here → (DjangoGirls)

Recommended Posts

Python practice_Virtual environment setup ~ Django installation
Django installation
Setup modern Python environment with Homebrew
Python installation
Python installation
Python environment construction
Python Django Tutorial (5)
Python Django Tutorial (2)
python environment settings
python windows environment
Environment construction (python)
Python installation (Windows)
django environment construction
ROS environment setup ①
Python Django Tutorial (8)
Python Django Tutorial (6)
python environment construction
Python --Environment construction
Python environment construction
django installation location
Python Django Tutorial (7)
Python Django Tutorial (1)
Python Django tutorial tutorial
python environment construction
Python installation 2020 (macOS)
Python Django Tutorial (3)
Python3.4 installation notes
Python Django Tutorial (4)
Build Python + django + nginx + MySQL environment using docekr
[Python] Build a Django development environment with Docker
Installation of Python3 and Flask [Environment construction summary]
Create Nginx + uWSGI + Python (Django) environment with docker
Image Processing with Python Environment Setup for Windows
[Django3] Environment construction and various settings summary [Python3]
Quickly build a Python Django environment with IntelliJ
Django 1.11 started with Python3.6
My python environment memo
python openCV installation (memo)
Python Django tutorial summary
Django python web framework
Python basic course (2 Python installation)
Reinforcement learning 1 Python installation
PyOpenGL setup on Python 3
Django project environment construction
Unification of Python environment
python windows environment construction
Python installation method Windows
homebrew python environment construction
Django Python shift table
Python development environment construction
python virtual environment Pipenv
Build a GVim-based Python development environment on Windows 10 (1) Installation
Installation of Python 3.3 rc1
Python 2.7 installation (yum) (CentOS 6.8)
How to build a Django (python) environment on docker
Try Debian + Python 3.4 + django1.7 ...
[Personal notes] Python, Django
About Python development environment
Build a Python virtual environment using venv (Django + MySQL ①)
Web application made with Python3.4 + Django (Part.1 Environment construction)
virtual environment in python