-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Add a custom static storage class #166
Comments
Hey, can i work on this issue ?? if yes please assign me. |
Hi! @pandafy i would like to work on this issue. |
Go ahead @Arsh0023 👍 |
Hi @pandafy I have created a StaticStoragClass that pretends to ignore files based on Unix shell-style wildcards. So what it actually does is it prevents the files from getting copied to 'STATIC_ROOT'.So first all the files get copied into the 'STATIC_ROOT' and then I've defined a post_process method that deletes the files which were told to be ignored. Is this fine should I create a PR, If not then what changes I should do. |
@Arsh0023 you just need to port the code from storage.py in ansible-openwisp2 which means you can just copy the code for storage class and mixin from there and put it under |
@pandafy Oh I see I went a little out of way, thanks for helping I am actually new to open source. I'd be working on what you told |
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder.
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Fixes openwisp#166
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for CompressStaticFilesStorage in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added OPENWISP_STATICFILES_VERSIONED_EXCLUDE. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added django-compress-staticfiles~=1.0.1b in install_requires in setup.py. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for `CompressStaticFilesStorage` in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added `django-compress-staticfiles~=1.0.1b` in install_requires in setup.py. Fixes openwisp#166
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder.
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Fixes openwisp#166
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for CompressStaticFilesStorage in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added OPENWISP_STATICFILES_VERSIONED_EXCLUDE. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added django-compress-staticfiles~=1.0.1b in install_requires in setup.py. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for `CompressStaticFilesStorage` in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added `django-compress-staticfiles~=1.0.1b` in install_requires in setup.py. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for `CompressStaticFilesStorage` in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added `django-compress-staticfiles~=1.0.1b` in install_requires in setup.py. Updated with requested changes. Fixes openwisp#166
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder.
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Fixes openwisp#166
…#166 Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for CompressStaticFilesStorage in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added OPENWISP_STATICFILES_VERSIONED_EXCLUDE. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added django-compress-staticfiles~=1.0.1b in install_requires in setup.py. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for `CompressStaticFilesStorage` in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added `django-compress-staticfiles~=1.0.1b` in install_requires in setup.py. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ . Added documentation and written test for `CompressStaticFilesStorage` in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added `django-compress-staticfiles~=1.0.1b` in install_requires in setup.py. Updated with requested changes. Fixes openwisp#166
Ported changes from storage.py in ansible-openwisp2 to storage.py in openwisp_utils/ That is added class CompressStaticFilesStorage which can exclude files based on OPENWISP_STATICFILES_VERSIONED_EXCLUDE. Added documentation and written test for CompressStaticFilesStorage in openwisp_utils.storage In documentation created a separate storage utilities section and in settings added OPENWISP_STATICFILES_VERSIONED_EXCLUDE. Created test_storage in tests/test_project/tests , The test creates a temporary folder and 2 text files in it and then runs collectstatic in that folder and checks whether the file hashed is correct or not and later deletes that folder. Added django-compress-staticfiles~=1.0.1b in install_requires in setup.py. Fixes openwisp#166
`CompressStaticFilesStorage` is added in storage.py which can exclude files based on `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Added Documetation and tests for the above. Fixes openwisp#166
`CompressStaticFilesStorage` is added in storage.py which can exclude files based on `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Added Documetation and tests for the above. Fixes openwisp#166
`CompressStaticFilesStorage` is added in storage.py which can exclude files based on `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Added Documetation and tests for the above. Closes #166
`CompressStaticFilesStorage` is added in storage.py which can exclude files based on `OPENWISP_STATICFILES_VERSIONED_EXCLUDE`. Added Documetation and tests for the above. Closes #166
Add custom static storage class with option to exclude files based on Unix shell-style wildcards. The code for this new class should reside in
openwisp_utils.storage.py
Port changes from storage.py in ansible-openwisp2
The text was updated successfully, but these errors were encountered: