mirror of
https://github.com/pretix/pretix.git
synced 2026-09-14 16:24:43 +00:00
Fix integration of django-statici18n
This commit is contained in:
@@ -7,4 +7,5 @@ build/
|
|||||||
dist/
|
dist/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
*.bak
|
*.bak
|
||||||
|
static/jsi18n/
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
all: localecompile staticfiles jsi18n
|
all: localecompile staticfiles
|
||||||
production: localecompile staticfiles compress jsi18n
|
production: localecompile staticfiles compress
|
||||||
|
|
||||||
localecompile:
|
localecompile:
|
||||||
./manage.py compilemessages
|
./manage.py compilemessages
|
||||||
@@ -8,7 +8,7 @@ localegen:
|
|||||||
./manage.py makemessages --all --ignore "pretix/helpers/*"
|
./manage.py makemessages --all --ignore "pretix/helpers/*"
|
||||||
./manage.py makemessages --all -d djangojs --ignore "pretix/helpers/*"
|
./manage.py makemessages --all -d djangojs --ignore "pretix/helpers/*"
|
||||||
|
|
||||||
staticfiles:
|
staticfiles: jsi18n
|
||||||
./manage.py collectstatic --noinput
|
./manage.py collectstatic --noinput
|
||||||
|
|
||||||
compress:
|
compress:
|
||||||
|
|||||||
@@ -310,6 +310,8 @@ STATICFILES_DIRS = [
|
|||||||
os.path.join(BASE_DIR, 'static')
|
os.path.join(BASE_DIR, 'static')
|
||||||
] if os.path.exists(os.path.join(BASE_DIR, 'static')) else []
|
] 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'
|
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
|
||||||
|
|
||||||
# if os.path.exists(os.path.join(DATA_DIR, 'static')):
|
# if os.path.exists(os.path.join(DATA_DIR, 'static')):
|
||||||
|
|||||||
Reference in New Issue
Block a user