Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unapplied migrations on clean clone

オープン 初心者向け
#31 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
django, python
領域
backend, databases

調査の方向性

まず、requirements.txt と manage.py runserver を使ってクリーンなクローンのセットアップを再現し、次にこの起動パスが Django のマイグレーションをどのように処理するかを確認します。関連する起動変更後に期待される動作を確認するため、記載された手順を繰り返し、未適用のマイグレーションに関する警告が引き続き表示されるかを確認します。

索引モデルが issue の本文から書いたものです。

説明

Right after cloning this repo and running it, I get a warning in red text that reads:

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.

Steps to reproduce:

  1. Use any reasonable Linux machine (in my case, an up-to-date CachyOS install)
  2. git clone [email protected]:Azure-Samples/msdocs-python-django-webapp-quickstart.git
  3. cd msdocs-python-django-webapp-quickstart/
  4. python -m venv .venv
  5. source .venv/bin/activate.fish (I use the Fish shell, but should make no difference)
  6. pip install -r requirements.txt
  7. python manage.py runserver
  8. Observe

Entire output:

~/(...)/msdocs-python-django-webapp-quickstart main
.venv ❯ 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.
June 12, 2026 - 14:02:50
Django version 6.0.6, using settings 'quickstartproject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.
For more information on production servers see: https://docs.djangoproject.com/en/6.0/howto/deployment/

The server runs fine.

主要言語
Bicep
スター
42
フォーク
293
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。