소스 검색

Fixed #21210 -- Documented when runserver doesn't auto-restart.

Thanks gergely at polonkai.eu for the suggestion.
Bouke Haarsma 11 년 전
부모
커밋
9b7d38ed5a
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      docs/intro/tutorial01.txt
  2. 2 0
      docs/ref/django-admin.txt

+ 8 - 0
docs/intro/tutorial01.txt

@@ -181,6 +181,14 @@ It worked!
     Full docs for the development server can be found in the
     :djadmin:`runserver` reference.
 
+.. admonition:: Automatic reloading of :djadmin:`runserver`
+
+    The development server automatically reloads Python code for each request
+    as needed. You don't need to restart the server for code changes to take
+    effect. However, some actions like adding files or compiling translation
+    files don't trigger a restart, so you'll have to restart the server in
+    these cases.
+
 Database setup
 --------------
 

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

@@ -791,6 +791,8 @@ Django.)
 
 The development server automatically reloads Python code for each request, as
 needed. You don't need to restart the server for code changes to take effect.
+However, some actions like adding files or compiling translation files don't
+trigger a restart, so you'll have to restart the server in these cases.
 
 When you start the server, and each time you change Python code while the
 server is running, the server will validate all of your installed models. (See