Leave it so that Python beginners do not forget the flow up to project creation.
Windows 10 Python 3.8.3 Django 3.0
https://www.python.org/downloads/
Install the latest Python on the above site
python --version
> Python 3.8.3
Check if it is installed properly When the version is displayed, it is installed properly
https://code.visualstudio.com/
I have installed VScode.
pip install virtualenv
Open CMD and enter the above command (what you are doing is installing virtualenv) What is virtualenv? → Software that can create a virtual environment for Python
virtualenv --version
Check if it is installed properly
virtualenv <Environment name to create>
Creating a virtual environment
.\Created environment name\Scripts\activate
>(Created environment name)
Running a virtual environment Success if displayed as above
(Created environment name) deactivate
When exiting the virtual environment
(Created environment name) pip install django
~~ Omitted ~~
successfully installed ・ ・ ・
Install Django Complete when displayed as above
What is a project? → A project is the skeleton of the entire application to be created.
(Created environment name) django-admin startproject project name
Automatically generate project template
(Created environment name)cd project name
Move to the created project
(Created environment name) python manage.py runserver
Start the development server
http://127.0.0.1:8000/
Access above Success if the Django screen (the screen that looks like a rocket) is displayed !!
Recommended Posts