Django environment development on Windows 10

I've summarized the process of getting Django to work on Windows 10.

environment: PC:windows 10 64bit python 3.8.5 virtualenv 20.0.30 Text editor Atom

Proceed as if python and virtualenv are installed.

I referred to here for the installation of virtualenv. I was having a hard time because I couldn't activate the command even though I was operating the command as described in the article. ・ Https://qiita.com/th1209/items/84f21a4499548b34ec91 ・ Https://qiita.com/wau/items/bc80859cf27307572fcd ・ Https://python.keicode.com/devenv/virtualenv.php

Now that I'm going to add Django, I read this and proceeded. ・ Https://tane-no-blog.com/709/

But after installing Django I had a problem. Create a virtual file called env1 and start a project called app1 in it. As mentioned in the article, django-admin startproject app1 I got an error when I ran. django-admin startproject app1.jpg

I wondered if the command is different in windows I tried the article "In windows, django-admin.py passes". django-admin.py startproject app1.jpg

After all it cannot be done. After that, I found an article that "An error occurs if the path does not pass", so I added the following two lines to the system environment variables. 環境変数 (3).jpg

I searched for the location of django-admin.py and set the path. However, I could not proceed due to an error again.

Then I tried some commands. py -m startproject mysite py-m (2).jpg

App1 has changed to mysite when I noticed it while I was looking at the site, so please go through.

I can't pass ...

I changed py to python and tried it. env1atartproject (3).jpg

I passed! On my computer python -m startproject mysite Was the path to create the project.

For confirmation, I used python manage.py runserver to start the server and check if the page can be opened. manage runserver (2).jpg

After the command prompt becomes the above screen In your browser http://127.0.0.1:8000/ I accessed. brouser (2).jpg

I had a hard time getting the pass

Recommended Posts

Django environment development on Windows 10
Install Python development environment on Windows 10
[Memo] Django development environment
Create a Python virtual development environment on Windows
Django development environment construction memo
Python + Kivy development on Windows
Prepare Chainer environment on Windows
Build python environment on windows
[Tensorflow] Tensorflow environment construction on Windows 10
django project development environment construction
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a Django development environment using pyenv-virtualenv on Mac
Create a comfortable Python 3 (Anaconda) development environment on windows
Build a GVim-based Python development environment on Windows 10 (1) Installation
Cross development environment (developing programs for windows on linux)
Prepare Django development environment using homebrew on MacOSX Mavericks (10.9)
Python environment construction memo on Windows 10
Prepare Python development environment on Ubuntu
Anaconda python environment construction on Windows 10
Install python2.7 on windows 32bit environment
[For beginners] Django -Development environment construction-
[Python3] Development environment construction << Windows edition >>
Create a Linux environment on Windows 10
Python development environment construction on macOS
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Django Crispy Tutorial (Environment Building on Mac)
Django environment construction
Addition of local development environment on MacOS
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Example of building python development environment on windows (wsl2, vscode, pipenv)
Python on Windows
Programming environment for beginners made on Windows
python windows environment
Django + Apache with mod_wsgi on Windows Server 2016
django environment construction
Creating a python virtual environment on Windows
I built a TensorFlow environment on windows10
First Django development
Windows + gVim + Poetry python development environment construction
Building an environment for "Tello_Video" on Windows
Create a Python development environment on Windows (Visual Studio Code remote WSL).
Run django applications on Windows + Apache + mod_wsgi + services.
Build Django + NGINX + PostgreSQL development environment with Docker
Build the fastest Django development environment with docker-compose
Simply build a Python 3 execution environment on Windows
Build a Django environment on Raspberry Pi (MySQL)
Until Django application creation by terminal (development environment)
[Python] Build a Django development environment with Docker
Build a Python development environment on your Mac
Build a Django development environment with Doker Toolbox
Build a Kubernetes environment for development on Ubuntu
Set up a Python development environment on Marvericks
Set up an Objective-C 2.0 development environment on Linux
From 0 to Django development environment construction to basic operation
Build a Python development environment on Raspberry Pi
Development digest with Django
Django project environment construction
python windows environment construction
Pylint on Windows Atom
Linux (WSL) on Windows
Celery notes on Django