Fix integration of django-statici18n

This commit is contained in:
Raphael Michel
2016-11-09 19:47:42 +01:00
parent 45b960b97c
commit 302c6da17f
3 changed files with 6 additions and 3 deletions

1
src/.gitignore vendored
View File

@@ -7,4 +7,5 @@ build/
dist/
*.egg-info/
*.bak
static/jsi18n/

View File

@@ -1,5 +1,5 @@
all: localecompile staticfiles jsi18n
production: localecompile staticfiles compress jsi18n
all: localecompile staticfiles
production: localecompile staticfiles compress
localecompile:
./manage.py compilemessages
@@ -8,7 +8,7 @@ localegen:
./manage.py makemessages --all --ignore "pretix/helpers/*"
./manage.py makemessages --all -d djangojs --ignore "pretix/helpers/*"
staticfiles:
staticfiles: jsi18n
./manage.py collectstatic --noinput
compress:

View File

@@ -310,6 +310,8 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
] if os.path.exists(os.path.join(BASE_DIR, 'static')) else []
STATICI18N_ROOT = os.path.join(BASE_DIR, "static")
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
# if os.path.exists(os.path.join(DATA_DIR, 'static')):