Skip to content
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

Static fails silently #200

Closed
glassresistor opened this issue May 2, 2017 · 1 comment
Closed

Static fails silently #200

glassresistor opened this issue May 2, 2017 · 1 comment

Comments

@glassresistor
Copy link

Using the default storage engine the static(path) does not fail if the file doesn't exist. It does fail for some storages though.

It should behave like {% static path %} and fail if the path is missing for all storage engines.

@niwinz
Copy link
Owner

niwinz commented May 28, 2017

It depends, I think that in majority of circumstances is much better have a broken link that 500 internal server error. It is ok internal server error in development, but the same code is also executed in production, and can happen that some file is missing for some reason, then, your entire page will be down because of one broken link to a static file.

@niwinz niwinz closed this as completed Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants