From 0294a1c323702471c409876e2744a4b35055b355 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 17 Aug 2021 21:02:45 +1000 Subject: [PATCH] Fix for staticfile collection - Was generating a *lot* of warning messages - Ref: https://github.com/django-compressor/django-compressor/issues/720 --- InvenTree/InvenTree/settings.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 6297dca41d..a0a9ca510e 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -213,14 +213,12 @@ if cors_opt: # Web URL endpoint for served static files STATIC_URL = '/static/' -STATICFILES_DIRS = [ - os.path.join(BASE_DIR, 'InvenTree', 'static'), -] +STATICFILES_DIRS = [] # Translated Template settings STATICFILES_I18_PREFIX = 'i18n' STATICFILES_I18_SRC = os.path.join(BASE_DIR, 'templates', 'js', 'translated') -STATICFILES_I18_TRG = STATICFILES_DIRS[0] + '_' + STATICFILES_I18_PREFIX +STATICFILES_I18_TRG = os.path.join(BASE_DIR, 'InvenTree', 'static_i18n') STATICFILES_DIRS.append(STATICFILES_I18_TRG) STATICFILES_I18_TRG = os.path.join(STATICFILES_I18_TRG, STATICFILES_I18_PREFIX)