class BaseReloader: (source)
Known subclasses: django.utils.autoreload.StatReloader
, django.utils.autoreload.WatchmanReloader
Undocumented
Class Method | check |
Undocumented |
Method | __init__ |
Undocumented |
Method | notify |
Undocumented |
Method | run |
Undocumented |
Method | run |
Undocumented |
Method | stop |
Undocumented |
Method | tick |
This generator is called in a loop from run_loop. It's important that the method takes care of pausing or otherwise waiting for a period of time. This split between run_loop() and tick() is to improve the testability of the reloader implementations by decoupling the work they do from the loop. |
Method | wait |
Wait until Django reports that the apps have been loaded. If the given thread has terminated before the apps are ready, then a SyntaxError or other non-recoverable error has been raised. In that case, stop waiting for the apps_ready event and continue processing. |
Method | watch |
Undocumented |
Method | watched |
Yield all files that need to be watched, including module files and files within globs. |
Instance Variable | directory |
Undocumented |
Instance Variable | extra |
Undocumented |
Property | should |
Undocumented |
Instance Variable | _stop |
Undocumented |
This generator is called in a loop from run_loop. It's important that the method takes care of pausing or otherwise waiting for a period of time. This split between run_loop() and tick() is to improve the testability of the reloader implementations by decoupling the work they do from the loop.
Wait until Django reports that the apps have been loaded. If the given thread has terminated before the apps are ready, then a SyntaxError or other non-recoverable error has been raised. In that case, stop waiting for the apps_ready event and continue processing. Return True if the thread is alive and the ready event has been triggered, or False if the thread is terminated while waiting for the event.