コマンドプロンプト、仮想環境でpython manage.py runserver
すると
(test1) C:\Users\81809\mysite>python manage.py runserver Watching for file changes with StatReloader Performing system checks... System check identified no issues (0 silenced). You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them. August 25, 2021 - 01:22:06 Django version 3.2.6, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [25/Aug/2021 01:22:16] "GET / HTTP/1.1" 200 23
こう出てそれからは
何も打てなくなります
pythonファイルに書いたコードの実行結果をブラウザで見たい場合
コマンドプロンプトで
仮想環境にはいり?(言い方分かりません)
↓
cd フォルダ名
↓
python manage.py runserver
↓
ブラウザ(http://127.0.0.1:8000/)
で確認だと思うのですが
皆様はこれを毎回やってますか?
手間が省けるやり方があれば
教えて頂けると幸いです。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー