mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Added DATA_DIR as a template and static file source
This commit is contained in:
@@ -159,7 +159,8 @@ TEMPLATES = [
|
|||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
'DIRS': [
|
'DIRS': [
|
||||||
os.path.join(BASE_DIR, 'templates')
|
os.path.join(DATA_DIR, 'templates'),
|
||||||
|
os.path.join(BASE_DIR, 'templates'),
|
||||||
],
|
],
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'context_processors': [
|
'context_processors': [
|
||||||
@@ -185,6 +186,11 @@ STATICFILES_FINDERS = (
|
|||||||
'compressor.finders.CompressorFinder',
|
'compressor.finders.CompressorFinder',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
STATICFILES_DIRS = (
|
||||||
|
os.path.join(DATA_DIR, 'static'),
|
||||||
|
os.path.join(BASE_DIR, 'static'),
|
||||||
|
)
|
||||||
|
|
||||||
COMPRESS_PRECOMPILERS = (
|
COMPRESS_PRECOMPILERS = (
|
||||||
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),
|
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user