Move static files out of pretix again, compile on setuptools build

This commit is contained in:
Raphael Michel
2016-02-16 16:42:02 +01:00
parent abe89039e4
commit f503d3f3f5
399 changed files with 30 additions and 5 deletions
+4 -4
View File
@@ -129,7 +129,7 @@ SESSION_COOKIE_DOMAIN = config.get('pretix', 'cookie_domain', fallback=None)
# Internal settings
STATIC_ROOT = '_static'
STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static.dist')
SESSION_COOKIE_NAME = 'pretix_session'
LANGUAGE_COOKIE_NAME = 'pretix_language'
@@ -257,11 +257,11 @@ STATICFILES_FINDERS = (
)
STATICFILES_DIRS = [
os.path.join(os.path.dirname(__file__), 'static')
os.path.join(BASE_DIR, 'static')
]
if os.path.exists(os.path.join(DATA_DIR, 'static')):
STATICFILES_DIRS.insert(0, os.path.join(DATA_DIR, 'static'))
# if os.path.exists(os.path.join(DATA_DIR, 'static')):
# STATICFILES_DIRS.insert(0, os.path.join(DATA_DIR, 'static'))
COMPRESS_PRECOMPILERS = (
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),