소스 검색

Fixed #28004 -- Doc'd how to create migrations for an app without a migrations directory.

Tim Graham 8 년 전
부모
커밋
7b53041420
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      docs/ref/django-admin.txt

+ 3 - 0
docs/ref/django-admin.txt

@@ -671,6 +671,9 @@ Providing one or more app names as arguments will limit the migrations created
 to the app(s) specified and any dependencies needed (the table at the other end
 of a ``ForeignKey``, for example).
 
+To add migrations to an app that doesn't have a ``migrations`` directory, run
+``makemigrations`` with the app's ``app_label``.
+
 .. django-admin-option:: --noinput, --no-input
 
 Suppresses all user prompts. If a suppressed prompt cannot be resolved