-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
django-assets and testing #42
Comments
Is there a reason usage of staticfiles is dependent on either This currently makes it a bit of a pain to easily test that django-assets does the right thing when developing locally. With EDIT: It'd be much easier if there was a separate setting like EDIT II: Upon testing it seems in my case that it's safe to simply always use the staticfiles integration if staticfiles is installed. In production I generate a manifest file, AFAICT having |
Thinking about it, turning them always on might be the best option. I can't really think of a good reason. The original impetus was probably an attempt to enforce the "collectstatic" workflow, since that is what is required in Django. In Django, you cannot rely on staticfiles in production either, I think.
This should all be documented better, since the process involves depends on quite a few factors and seems hard to reason about.
In other words, to get the full benefit of a manifest, turn of auto building. Otherwise, the timestamps will still be checked. |
As it relates to #3, #30 and other tickets, I've collected some thoughts on unit-testing.
The problem currently, as I understand it, is:
How should django-assets behave in tests? We may want to document this.
They should be able to say ASSETS_AUTO_BUILD=False, and bypass building completely.
All that said, ASSETS_DEBUG does seem to be the better hook; it means I want to run from source, and that means it shouldn't require collectstatic to copy the source file to somewhere else first.
The text was updated successfully, but these errors were encountered: