-
Notifications
You must be signed in to change notification settings - Fork 578
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
All files/folders missing after upgrade >= 1.0 with DEBUG == False #613
Comments
Confirmed. Actually this happens in a template, so you can have DEBUG=False; TEMPLATE_DEBUG=True. Something to do with this ('filer/icons/plainfolder_16x16.png' not found while rendering 'directory_listing.html' template):
|
After further investigation I found that problem lies in IconsMixin which adds icons attribute on filer models. Currently it just gets FILER_ADMIN_ICON_SIZES settings, iterates through sizes and returns links to actual icons of different sizes. The problem is that by default
|
I can confirm this fix works. Thanks for the quick response! |
We also have the same problem. It occurs with I see from the traceback provided by @skirsdeda that he uses custom There is few possible solutions of the problem:
I think that core developers need to decide which solution they prefer. |
@vstoykov Sure, I am inheriting from Not only should it be wrapped in |
@skirsdeda you are using For reference https://github.com/django/django/blob/stable/1.9.x/django/contrib/staticfiles/storage.py#L293 Still when list many files from the same type there is no need for every file to calculate urls of all possible icons and then use only one of them. The best will be to cache them in the class itself. |
@vstoykov I agree. |
I removed the 16x16 icons and removed the 16px size from the default settings. I hope this resolves the issue. Otherwise please re-open. |
The files are still there on the filesystem and show up in the admin if I set DEBUG = True or revert to an older version.
Here are my package versions:
The text was updated successfully, but these errors were encountered: