diff --git a/django/core/files/move.py b/django/core/files/move.py index 58a0ab125d..99b831ffc9 100644 --- a/django/core/files/move.py +++ b/django/core/files/move.py @@ -11,6 +11,7 @@ from django.core.files import locks try: from shutil import copystat except ImportError: + import stat def copystat(src, dst): """Copy all stat info (mode bits, atime and mtime) from src to dst""" st = os.stat(src)