Added DATA_DIR as a template and static file source

This commit is contained in:
Raphael Michel
2015-06-29 15:16:45 +02:00
parent e75a0e4856
commit 0a5c2c9fcf

View File

@@ -159,7 +159,8 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'templates')
os.path.join(DATA_DIR, 'templates'),
os.path.join(BASE_DIR, 'templates'),
],
'OPTIONS': {
'context_processors': [
@@ -185,6 +186,11 @@ STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder',
)
STATICFILES_DIRS = (
os.path.join(DATA_DIR, 'static'),
os.path.join(BASE_DIR, 'static'),
)
COMPRESS_PRECOMPILERS = (
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),
)