module documentation

Undocumented

Class BaseReloader No class docstring; 0/1 property, 0/3 instance variable, 3/9 methods, 0/1 class method documented
Class StatReloader Undocumented
Class WatchmanReloader No class docstring; 0/1 property, 0/3 instance variable, 2/14 methods, 0/1 class method documented
Exception WatchmanUnavailable Undocumented
Function check_errors Undocumented
Function common_roots Return a tuple of common roots that are shared between the given paths. File system watchers operate on directories and aren't cheap to create. Try to find the minimum set of directories to watch that encompass all of the files that need to be watched.
Function ensure_echo_on Ensure that echo mode is enabled. Some tools such as PDB disable it which causes usability issues after reload.
Function get_child_arguments Return the executable. This contains a workaround for Windows if the executable is reported to not have the .exe extension which can cause bugs on reloading.
Function get_reloader Return the most suitable reloader for this environment.
Function is_django_module Return True if the given module is nested under Django.
Function is_django_path Return True if the given file path is nested under Django.
Function iter_all_python_module_files Undocumented
Function iter_modules_and_files Iterate through all modules needed to be watched.
Function raise_last_exception Undocumented
Function restart_with_reloader Undocumented
Function run_with_reloader Undocumented
Function start_django Undocumented
Function sys_path_directories Yield absolute directories from sys.path, ignoring entries that don't exist.
Function trigger_reload Undocumented
Constant DJANGO_AUTORELOAD_ENV Undocumented
Variable autoreload_started Undocumented
Variable file_changed Undocumented
Variable logger Undocumented
Variable _error_files Undocumented
Variable _exception Undocumented
def check_errors(fn): (source)

Undocumented

@functools.lru_cache(maxsize=1)
def common_roots(paths): (source)

Return a tuple of common roots that are shared between the given paths. File system watchers operate on directories and aren't cheap to create. Try to find the minimum set of directories to watch that encompass all of the files that need to be watched.

def ensure_echo_on(): (source)

Ensure that echo mode is enabled. Some tools such as PDB disable it which causes usability issues after reload.

def get_child_arguments(): (source)

Return the executable. This contains a workaround for Windows if the executable is reported to not have the .exe extension which can cause bugs on reloading.

def get_reloader(): (source)

Return the most suitable reloader for this environment.

def is_django_module(module): (source)

Return True if the given module is nested under Django.

def is_django_path(path): (source)

Return True if the given file path is nested under Django.

def iter_all_python_module_files(): (source)

Undocumented

@functools.lru_cache(maxsize=1)
def iter_modules_and_files(modules, extra_files): (source)

Iterate through all modules needed to be watched.

def raise_last_exception(): (source)

Undocumented

def restart_with_reloader(): (source)

Undocumented

def run_with_reloader(main_func, *args, **kwargs): (source)

Undocumented

def start_django(reloader, main_func, *args, **kwargs): (source)

Undocumented

def sys_path_directories(): (source)

Yield absolute directories from sys.path, ignoring entries that don't exist.

def trigger_reload(filename): (source)

Undocumented

DJANGO_AUTORELOAD_ENV: str = (source)

Undocumented

Value
'RUN_MAIN'
autoreload_started = (source)

Undocumented

file_changed = (source)

Undocumented

Undocumented

_error_files: list = (source)

Undocumented

_exception = (source)

Undocumented