[PYTHON] Steps to create a Django project

Leave it so that Python beginners do not forget the flow up to project creation.

environment

Windows 10 Python 3.8.3 Django 3.0

Rough flow

  1. Python installation ↓
  2. Preparing the text editor ↓
  3. Python virtual environment construction
  1. Install Django ↓
  2. Create a project

1. Python installation

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

2. Preparing the text editor

https://code.visualstudio.com/

I have installed VScode.

3. Python virtual environment construction

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

4. Install Django

(Created environment name) pip install django
~~ Omitted ~~
successfully installed ・ ・ ・

Install Django Complete when displayed as above

5. Create a project

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

Steps to create a Django project
Shell to create django project
To myself as a Django beginner (1) --Create a project app--
Start a Django project
Deploy Django + React from scratch to GKE (3) Create a GCP project
Steps to create a Twitter bot with python
How to create a Rest Api in Django
Create a homepage with django
Create a Django login screen
Deploy django project to heroku
A memo to create a virtual environment (venv) before Django
I tried to create a table only with Django
Steps from installing Python 3 to creating a Django app
How to reference static files in a Django project
To myself as a Django beginner (4) --Create a memo app--
Steps to develop Django with VSCode
How to create a Conda package
How to create a virtual bridge
How to create a Dockerfile (basic)
5 Ways to Create a Python Chatbot
How to create a config file
Create a file uploader with Django
Create a LINE Bot in Django
Rails users try to create a simple blog engine with Django
Create a REST API to operate dynamodb with the Django REST Framework
I tried to create a linebot (implementation)
How to create a clone from Github
Create a new Python numerical calculation project
How to create a git clone folder
Create a model for your Django schedule
Commands for creating a new django project
Various ways to create a dictionary (memories)
How to create a repository from media
Script to create a Mac dictionary file
[Python] Introduce UIKit3 to your Django project
Steps to create a Python virtual environment with VS Code on Windows
Django Project Baseline
Steps to build a Django environment with Win10 WSL Ubuntu18.04 + Anaconda + Apache2
[Python] List Comprehension Various ways to create a list
Edit Excel from Python to create a PivotTable
I want to easily create a Noise Model
How to create a Python virtual environment (venv)
How to create a function object from a string
How to develop a cart app with Django
I want to create a window in Python
Randomly sample MNIST data to create a dataset
How to create a JSON file in Python
If you want to create a Word Cloud.
Create a command to encode / decode Splunk base64
Create a dashboard for Network devices with Django!
Steps to develop a web application in Python
Use click to create a sub-sub command --netsted sub-sub command -
Try to create a new command on linux
Django REST framework A little useful to know.
How to create a shortcut command for LINUX
I want to create a plug-in type implementation
[Note] How to create a Ruby development environment
How to create a Kivy 1-line input box
How to create a multi-platform app with kivy
Create a one-file hello world application with django
Until you create a new app in Django