mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 15:57:31 +00:00
Update staticfile storage and clean scripts assets
This commit is contained in:
parent
85d2812ca6
commit
9d46ebe158
2
Makefile
2
Makefile
@ -24,7 +24,7 @@ statici18n:
|
||||
collectstatic:
|
||||
@echo "--> Collect django static files to media/assets"
|
||||
rm -rf media/assets 2> /dev/null
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py collectstatic --noinput -i admin -i termsandconditions -i app -i sysadmin-app -i build.js
|
||||
|
||||
compressstatic:
|
||||
@echo "--> Compress static files(css) to media/CACHE"
|
||||
|
@ -90,7 +90,7 @@ WEBPACK_LOADER = {
|
||||
}
|
||||
}
|
||||
|
||||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage'
|
||||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
|
||||
|
||||
# StaticI18N config
|
||||
STATICI18N_ROOT = '%s/static/scripts' % PROJECT_ROOT
|
||||
|
Loading…
Reference in New Issue
Block a user