diff --git a/dojo/settings/.settings.dist.py.sha256sum b/dojo/settings/.settings.dist.py.sha256sum index 31f7174f6b..146a46f0b4 100644 --- a/dojo/settings/.settings.dist.py.sha256sum +++ b/dojo/settings/.settings.dist.py.sha256sum @@ -1 +1 @@ -86a9b26bbb326e3db829374494fe1648489abe5c29233bba63a2c50178782ed3 +f23b780905f138f168436a6579b45a1ccaa0deb35e6b11b1e9169f13266e4bb0 diff --git a/dojo/settings/settings.py b/dojo/settings/settings.py index 5a7f51ac0b..ce4b1be620 100644 --- a/dojo/settings/settings.py +++ b/dojo/settings/settings.py @@ -1,4 +1,5 @@ import hashlib +import sys from pathlib import Path from split_settings.tools import include, optional @@ -11,7 +12,7 @@ optional('local_settings.py') ) -if not DEBUG: +if not (DEBUG or ('collectstatic' in sys.argv)): with (Path(__file__).parent / 'settings.dist.py').open('rb') as file: real_hash = hashlib.sha256(file.read()).hexdigest() with (Path(__file__).parent / '.settings.dist.py.sha256sum').open('rb') as file: