Try using the Python web framework Django (1)-From installation to server startup

environment

Install Python3

Since it's a big deal, I will install Python3.

$ brew install python3

$ python3 --version
Python 3.4.3

Django installation

$ sudo pip install django
...
Successfully installed django-1.8.3

$ pip freeze -l
...
Django==1.8.3
...

Create a Django project

$ django-admin.py startproject project
$ ls
project

Migrate and launch your Django project

$ python manage.py migrate
...

$ python manage.py runserver
...
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

When I try to connect to localhost: 8000, I get ʻIt worked!`.

next time

http://qiita.com/yoshikyoto/items/274ffd8bb8087902aec8

reference

Recommended Posts

Try using the Python web framework Django (1)-From installation to server startup
Try using the Python web framework Django (2) --Look at setting.py
Try using the Python web framework Tornado Part 1
Try using the Python web framework Tornado Part 2
How to build an application from the cloud using the Django web framework
(Python) Try to develop a web application using Django
Try using the web application framework Flask
Django python web framework
From easy git installation to docker startup python
The wall of changing the Django service from Python 2.7 to Python 3
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 1 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 2 ~
[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 ~
WEB application development using Django [Django startup]
Try using the Python Cmd module
Install Python framework django using pip
Try using Amazon DynamoDB from Python
How to get followers and followers from python using the Mastodon API
Terminal association from the server side to Amazon SNS (python + boto3)
Try using the Wunderlist API in Python
From Python to using MeCab (and CaboCha)
Try using the Kraken API in Python
Push notification from Python server to Android
Try to operate Excel using Python (Xlwings)
Python amateurs try to summarize the list ①
[python] Send the image captured from the webcam to the server and save it
Send a message from Slack to a Python server
Try using django-import-export to add csv data to django
Procedure to use TeamGant's WEB API (using python)
Try to solve the Python class inheritance problem
I want to email from Gmail using Python.
Try to solve the man-machine chart with Python
Introduction to Tornado (1): Python web framework started with Tornado
Try using the BitFlyer Ligntning API in Python
Region extraction method using cellular automaton Try region extraction from the image with growcut (Python)
Python: Try using the UI on Pythonista 3 on iPad
[2021 version] From Selenium Basic installation to Web scraping execution by Python Windows 10 (64bit)
POST images from ESP32-CAM (MicroPython) to the server
[Python] Flow from web scraping to data analysis
[Introduction to Python3 Day 20] Chapter 9 Unraveling the Web (9.1-9.4)
Use the Python framework "cocotb" to test Verilog.
WEB scraping with python and try to make a word cloud from reviews
Operate the schedule app using python from iphone
Try using the collections module (ChainMap) of python3
Try to create an HTTP server using Node.js
Run a Python file from html using Django
[Python] I will upload the FTP to the FTP server.
Try accessing the YQL API directly from Python 3
Knowledge notes needed to understand the Python framework
Try using the DropBox Core API in Python
[Ruby on Rails] From application creation to server startup & what is the port number?
How to host web app backend processing in Python using a rental server subdomain
[Python] How to remove duplicate values from the list
Try to solve the programming challenge book with python3
Python beginners try adding basic auth to Django admin
Around the installation of the Python project management framework Trac
[Python] Try to read the cool answer to the FizzBuzz problem
Try setting SSH (Exscript) from the software to the router
Try setting NETCONF (ncclient) from software to the router