diff options
| author | Unai Zalakain <unai@gisa-elkartea.org> | 2013-10-14 07:33:45 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-30 11:45:43 -0400 |
| commit | 15f82c701161b327cef54b469c00b6cbe01534db (patch) | |
| tree | 4e9be0bbf1708c2c08f825ee2c83ae7e1095f352 /docs | |
| parent | e9cb333bc359a31c548c97dc07e392cfe39be18e (diff) | |
Fixed #9722 - used pyinotify as change detection system when available
Used pyinotify (when available) to replace the "pool-every-one-second"
mechanism in `django.utils.autoreload`.
Thanks Chris Lamb and Pascal Hartig for work on the patch.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 12 | ||||
| -rw-r--r-- | docs/releases/1.7.txt | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 2d9dcd9920..6bb03347c9 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -794,6 +794,18 @@ 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. +If you are using Linux and install `pyinotify`_, kernel signals will be used to +autoreload the server (rather than polling file modification timestamps each +second). This offers better scaling to large projects, reduction in response +time to code modification, more robust change detection, and battery usage +reduction. + +.. _pyinotify: https://pypi.python.org/pypi/pyinotify/ + +.. versionadded:: 1.7 + + ``pyinotify`` support was added. + 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 the ``validate`` command below.) If the validator finds errors, it will print diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 784ee86493..9a7ff41cf7 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -343,6 +343,9 @@ Management Commands Django takes this information from your settings file. If you have configured multiple caches or multiple databases, all cache tables are created. +* The :djadmin:`runserver` command now uses ``inotify`` Linux kernel signals + for autoreloading if ``pyinotify`` is installed. + Models ^^^^^^ |
