1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| #-----------------------------------------------------------------------------
| # Copyright (c) 2013-2023, PyInstaller Development Team.
| #
| # Distributed under the terms of the GNU General Public License (version 2
| # or later) with exception for distributing the bootloader.
| #
| # The full license is in the file COPYING.txt, distributed with this software.
| #
| # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)
| #-----------------------------------------------------------------------------
| """
| django.core.mail uses part of the email package.
| The problem is: when using runserver with autoreload mode, the thread that checks for changed files triggers further
| imports within the email package, because of the LazyImporter in email (used in 2.5 for backward compatibility).
| We then need to name those modules as hidden imports, otherwise at runtime the autoreload thread will complain
| with a traceback.
| """
|
| hiddenimports = [
| 'email.mime.message',
| 'email.mime.image',
| 'email.mime.text',
| 'email.mime.multipart',
| 'email.mime.audio',
| ]
|
|