File: fix-non-dev-option-in-settings.patch

package info (click to toggle)
python-ara 1.5.8-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,460 kB
  • sloc: python: 6,493; sh: 215; makefile: 15; javascript: 2
file content (19 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: WHITENOISE_USE_FINDERS can only be enabled
 in development when WHITENOISE_AUTOREFRESH is also enabled.
Author: Michal Arbet <michal.arbet@ultimum.io>
Forwarded: not-needed
Last-Update: 2020-04-06

diff --git a/ara/server/settings.py b/ara/server/settings.py
index f773462..1341022 100644
--- a/ara/server/settings.py
+++ b/ara/server/settings.py
@@ -199,7 +199,7 @@ USE_I18N = False
 USE_L10N = False
 
 # whitenoise serves static files without needing to use "collectstatic"
-WHITENOISE_USE_FINDERS = True
+WHITENOISE_USE_FINDERS = False
 # https://github.com/evansd/whitenoise/issues/215
 # Whitenoise raises a warning if STATIC_ROOT doesn't exist
 warnings.filterwarnings("ignore", message="No directory at", module="whitenoise.base")