mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix integration of django-statici18n
This commit is contained in:
1
src/.gitignore
vendored
1
src/.gitignore
vendored
@@ -7,4 +7,5 @@ build/
|
||||
dist/
|
||||
*.egg-info/
|
||||
*.bak
|
||||
static/jsi18n/
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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')):
|
||||
|
||||
Reference in New Issue
Block a user