[PYTHON] Install Django

Installation of Anaconda https://www.anaconda.com/

After installing Anaconda, open Anaconda Navigator

Select "Environments" from the menu on the left of Anaconda Navigator and create a directory with Create. (This time, we will proceed as "my app".)

After creating myapp, click "▶" and select "Open Terminal".

(myapp) C:\Users\yourname>

If cmd.exe can be started in this state, execute the following command to install Django.

pip3 install django

Once you've installed Django with pip, run the following command to create your application.

django-admin startproject [your-app-name]

This command creates a directory for your Django application.

(myapp) C:\Users\yourname>django-admin startproject mydjangoapp_web

If you execute the django-admin command in the above state, a directory called mydjangoapp_web will be created directly under C: \ Users \ yourname, so the directory you want to create the folder as appropriate. To move to.

File Contents
__init__.py A script file that performs initialization when running a Django project
settings.py A file that describes the project setting information
urls.py File that manages the URL (address when accessing on the Web) used in the project
wsgi.py The main program part of the web application

Launch the app

Execute the following command with cmd.exe started from Anaconda Navigator

python manage.py runserver

After executing the above command, access localhost: 8000 with an internet browser. Press Ctrl + C to shut down the local server.

reference

--Python Django Super Primer [1st Edition, 1st Edition], Yano Palm Tatsu, 2018-06-15

Recommended Posts

Install Django
CentOS8 --Install --Django
Install Python 3.7 and Django 3.0 (CentOS)
Install Django on your Mac
django update
Django note 4
Install pytorch
Install Activiti 6
Django memorandum
django search
Django installation
ArcoLinux install
Django Summary
install python
Django test
Install virtualenv
Install mojimoji
Install Scipy
Install Memo
Django # 2 (template)
Django hands-on
Touch django
django notes
Django Summary
Django basics
Install Ansible
Django defaults
install keras
Install Mu
Django + Docker
Django Glossary
Django search
Install skt-war-result
Install PyTorch
Install Python framework django using pip
install pillow
Django: References
ArchmanLinux Install
Django Note 1
Django note 3
Django note 2
Django startup
Django notes
Django NullCharField
Install Django in a pipenv virtual environment
[Django] Install radio buttons and shape markup
Django environment construction
Django ~ settings.py edition ~
Django Heroku Deploy 1
Django HTML Template # 2
Django Contact Form 2
Django begins part 1
Django model: ManyToManyField
What is Django? .. ..
Models in Django
Django function-based view
Python Django Tutorial (5)
Python Django Tutorial (2)
[Django] as_view () notes
First Django Challenge
django makemigarations createsuperuser