LoginSignup
6
0

More than 3 years have passed since last update.

djangoのよく使うコマンド まとめ(初学者)

Posted at

はじめに

自分自身djangoに取り掛かるに当たって必要なコマンドを調べたのでここにまとめます。

コマンド

以下 Mac os/Linuxでのコマンドになります。
アプリケーションの作成

python manage.py startapp sample

サーバーの立ち上げ

python manage.py runserver

仮想環境の立ち上げ 有効化

python3 -m venv env
source env/bin/activate

migrationファイルの作成

python manage.py makemigrations

DB migrationの実行

python manage.py migrate

データベースの管理者ユーザーを作成

python manage.py createsuperuser

おわりに

上記がよく使うコマンドになります。参考になれば幸いです。

6
0
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
6
0