From 67ea2281ff9ec77b6bbe6ba7b987913a6cdcc0df Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 10 Nov 2020 11:16:49 +0100 Subject: [PATCH] TT#100601 use static versioning for production environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > stores the file names it handles by appending the MD5 hash of the > file’s content to the filename. > For example, the file css/styles.css would also be saved > as css/styles.55e7cbb9ba48.css. Change-Id: I74a7eba6ed12f85a6e9dc30530ef2a43014031c3 --- repoapi/settings/prod.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repoapi/settings/prod.py b/repoapi/settings/prod.py index 62d76f3..4cffa24 100644 --- a/repoapi/settings/prod.py +++ b/repoapi/settings/prod.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015 The Sipwise Team - http://sipwise.com +# Copyright (C) 2015-2020 The Sipwise Team - http://sipwise.com # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free @@ -85,7 +85,9 @@ DATABASES = { "PORT": "", } } - +STATICFILES_STORAGE = ( + "django.contrib.staticfiles.storage.ManifestStaticFilesStorage" +) GITWEB_URL = "https://git.mgm.sipwise.com/gitweb/?p={}.git;a=commit;h={}" WORKFRONT_CREDENTIALS = join(BASE_DIR, "/etc/jenkins_jobs/workfront.ini") WORKFRONT_NOTE = True