0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Django】Build web apps ~1章:プロジェクト作成~

Last updated at Posted at 2020-02-17

以前準備

Install pip

sudo easy_install pip
sudo pip install --upgrade pip

install django2.2

pip install django==2.2

Django project 作成

create project

django-admin startproject [project_name]

run

[project_name]へディレクトリし、次のコマンドを実行する
python manage.py runserver
デフォルトリンクは http://localhost:8000/

Projectの仕組み

[project_name]

  1. [project_name]
    1. settings.py
    2. urls.py
    3. wsgi.py
  2. db.sqlite3
  3. manage.py

Django app 作成

create app

django-admin startapp [app_name]
or
python manage.py startapp [app_name]
image.png

Appの仕組み

[app_name]

  1. migrations
  2. admin.py
  3. apps.py
  4. models.py
  5. tests.py
  6. views.py

関連記事

・【Django】Build web apps ~2章:ViewsとURL Patterns~
・【Django】Build web apps全章で使ったコマンド

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?