Linux Install

Android

Linux Tools

Linux AV

Linux Memo

WINDOWS

PROGRAM

動画 Memo

音楽 Memo

モバイルアプリ Memo

FILE FORMAT

PROTOCOL

DEVICE

BookMark

その他


django   

pre

python3 が入っていること

pip install --upgrade pip

install

pip install django

hello world

first step

django-admin startproject django_project
cd django_project
python manage.py startapp testpage

django_project/settings.py
INSTALLED_APPS に testpage を加える

'testpage',

django_project/urls.py

from django.urls import path
from django.conf.urls import url
from django.contrib import admin
from testpage import views
urlpatterns = [
    path('testpage/', views.index),
]

testpage/views.py

from django.http import HttpResponse
def index(req):
   return HttpResponse('Hello, World')

起動

python manage.py runserver 9000
http://localhost:9000/testpage/

plugin install

pip install social-auth-app-django requests_oauthlib jsonfield2 jsonschema wheel django-bootstrap4