mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Refs #80 -- Moved static files to a top-level directory
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user