LoginSignup
0
1

More than 3 years have passed since last update.

Djangoでよく使うコマンド操作一覧

Posted at

Djangoでよく使うコマンド操作一覧

概要

WEBアプリケーションを作るときにDjangoを使うのですが、よく使うコマンドをよく忘れてしまうのでまとめてみました!!

プロジェクト作成

django-admin startproject プロジェクト名

アプリケーションの作成

python3 manage.py startapp アプリ名

サーバーの起動

python3 manage.py runserver

マイグレーションファイルを作成

python3 manage.py makemigrations モデルのあるアプリ名

マイグレーションファイルをデータベースに適用

python3 manage.py migrate
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