Refs #80 -- Moved static files to a top-level directory

This commit is contained in:
Raphael Michel
2015-07-20 11:19:23 +02:00
parent cd9c048458
commit 8732e92cde
266 changed files with 14 additions and 12 deletions

View File

@@ -214,13 +214,12 @@ STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder',
)
STATICFILES_DIRS = []
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
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'))
STATICFILES_DIRS.insert(0, os.path.join(DATA_DIR, 'static'))
COMPRESS_PRECOMPILERS = (
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),