Create a Django project and application in a Python virtual environment and start the server

It's almost my own memo.

Create a Python virtual environment

C:\Users\UserName> python -m venv my_venv

my_venv: virtual environment name

Move to Scripts directory

C:\Users\UserName> cd my_venv\Scripts

Enter the virtual environment

> activate
(my_venv) C:\Users\UserName>

Upgrade pip

(my_venv) C:\Users\UserName> python -m pip install --upgrade pip

Install Django

(my_venv) C:\Users\UserName> pip install django

Create a Django project

(my_venv) C:\Users\UserName> django-admin startproject myproject

myproject: project name

Create an application

(my_venv) C:\Users\UserName> python manage.py startapp myapp

myapp: application name

Move to the project folder

(my_venv) C:\Users\UserName> cd myproject

Start the server

(my_venv) C:\Users\UserName>myproject> python manage.py runserver

Recommended Posts

Create a Django project and application in a Python virtual environment and start the server
Start Django in a virtual environment with Pipenv
Create a virtual environment with conda in Python
Install django on python + anaconda and start the server
Create a Python image in Django without a dummy image file and test the image upload
Create a virtual environment with Python!
Build a Python environment and transfer data to the server
Install Django in a pipenv virtual environment
Let's create a virtual environment for Python
[Python] Create a virtual environment with Anaconda
Create a Vim + Python test environment in 1 minute
How to create a Python virtual environment (venv)
Ubuntu18.04.05 Creating a python virtual environment in LTS
ffmpeg-Build a python environment and split the video
[Venv] Create a python virtual environment on Ubuntu
Work in a virtual environment with Python virtualenv.
[Docker] Create a jupyterLab (python) environment in 3 minutes!
Create a Python virtual development environment on Windows
virtual environment in python
Create a Python environment
Start a Django project
A story when a directory is buggy with the django-admin start project command in a virtual environment using Pipenv
Note: Start Anaconda, enter the Python virtual environment, and connect locally to MongoDB.
[Python] How to create a local web server environment with SimpleHTTPServer and CGIHTTPServer
A memo to create a virtual environment (venv) before Django
Python: Creating a virtual environment (venv), starting and stopping
Create an Anaconda virtual environment in your project folder
Build a Python virtual environment using venv (Django + MySQL ①)
Building and enabling a python virtual environment, etc. (venv)
Build a python virtual environment with virtualenv and virtualenvwrapper
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 2 ~
Tasks at the start of a new python project
Create a decent shell and python environment on Windows
Create a fake Minecraft server in Python with Quarry
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 3 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 4 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 5 ~
Create a function in Python
Building a Python virtual environment
Building a Python virtual environment
Explaining how to make LINE BOT in the world's easiest way (2) [Preparing a bot application in a local environment with Django in Python]
[Python] Building a virtual python environment for the pyramid tutorial (summary)
Create code that outputs "A and pretending B" in python
After enabling the python virtual environment in the batch file, run the python file
Create a virtual environment for python on mac [Very easy]
Overview of Python virtual environment and how to create it
Parse the Researchmap API in Python and automatically create a Word file for the achievement list
Create a DI Container in Python
Steps to create a Django project
Register your Django application in your project
Create a Python environment on Mac (2017/4)
Create new application use python, django
Building a virtual environment with Python 3
Create a python environment on centos
Create Python project documentation in Sphinx
Function synthesis and application in Python
Create a Kubernetes Operator in Python
Create a random string in Python
Create and read messagepacks in Python
Create a LINE Bot in Django
Create a Python environment for professionals in VS Code on Windows