mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Fix for staticfile collection
- Was generating a *lot* of warning messages - Ref: https://github.com/django-compressor/django-compressor/issues/720
This commit is contained in:
		| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user