forked from CGM_Public/pretix_original
Fixed collectstatic if the now possible static files in DATA_DIR do not
exist, also, we have to run collectstatic at startup time
This commit is contained in:
@@ -186,10 +186,13 @@ STATICFILES_FINDERS = (
|
||||
'compressor.finders.CompressorFinder',
|
||||
)
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(DATA_DIR, 'static'),
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
)
|
||||
STATICFILES_DIRS = []
|
||||
|
||||
if os.path.exists(os.path.join(DATA_DIR, 'static')):
|
||||
STATICFILES_DIRS.append(os.path.join(DATA_DIR, 'static'))
|
||||
|
||||
if os.path.exists(os.path.join(BASE_DIR, 'static')):
|
||||
STATICFILES_DIRS.append(os.path.join(BASE_DIR, 'static'))
|
||||
|
||||
COMPRESS_PRECOMPILERS = (
|
||||
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),
|
||||
|
||||
Reference in New Issue
Block a user