mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
custom manifest static files storage that also minify scss and js files
This commit is contained in:
@ -273,6 +273,15 @@ STATICFILES_FINDERS = [
|
||||
"sith.finders.ScssFinder",
|
||||
]
|
||||
|
||||
STORAGES = {
|
||||
"default": {
|
||||
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
||||
},
|
||||
"staticfiles": {
|
||||
"BACKEND": "sith.storage.SithStorage",
|
||||
},
|
||||
}
|
||||
|
||||
# Auth configuration
|
||||
AUTH_USER_MODEL = "core.User"
|
||||
AUTH_ANONYMOUS_MODEL = "core.models.AnonymousUser"
|
||||
@ -716,7 +725,7 @@ if TESTING:
|
||||
"BACKEND": "django.core.files.storage.InMemoryStorage",
|
||||
},
|
||||
"staticfiles": {
|
||||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
|
||||
"BACKEND": "sith.storage.SithStorage",
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user