chicken voiceの作成備忘録(1)〜環境構築〜
twitter自動Botを作成する。名称はchicken voice(仮名)。
以下の作業は ../work_chicken_voice
で行う。
python3系のインストール
$ brew install python3
仮想環境の作成
$ python3 -m venv chickenEnv
仮想環境をアクティベートする。
$ source chickenEnv/bin/activate
Djangoのインストール
$ pip3 install django==3.0.2
Djangoプロジェクトの作成
$ django-admin startproject chickenvoice
データベースのセットアップ
$ python3 manage.py migrate
スーパーユーザの作成
$ python3 manage.py createsuperuser
開発サーバの起動
$ python3 manage.py runserver
gitの設定
リポジトリの作成
$ git init
$ git remote origin add origin https://~~~~~~
.gitignoreの作成
$ vi .gitignore chickenEnv db.sqlite3 __pycache__ vscode
本記事はここまで。